简体   繁体   中英

Error making app compatible for iOS6 and iOS7

I built an app on XCode 5 for iOS7 and have just downloaded the iOS6 SDK so I can make the app compatible for iOS6, however when trying to build the project I am getting this error

Undefined symbols for architecture armv7:
  "___sincos_stret",

What should I do to solve this because I really need my app working with iOS6

Here are my current settings:

在此处输入图片说明

在此处输入图片说明

__sincos_stret is new to iOS7. Make sure your deployment target is set to iOS6. See semi-related question here: ___sincos_stret undefined symbol when linking

Update : You need to set the Base SDK to iOS 7. You generally want to set Base SDK to the latest version you intend support, and Deployment Target to the earliest version. See related question: Base versus Active versus Deployment target

set the Base SDK to ios7 and set the deployment target to ios6

that way you get the headers for 7 but the app is compiled to be run on ios6

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM