1

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:

enter image description here

enter image description here

Omar
  • 979
  • 3
  • 16
  • 26

2 Answers2

2

__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

Community
  • 1
  • 1
zpasternack
  • 17,838
  • 2
  • 63
  • 81
  • I have tried that, but it's still giving me the error. Please see my edited question with screenshots. Is there anything else I should change? – Omar Jan 19 '14 at 10:13
  • You have set your Base SDK to iOS 6. The iOS 6 SDK is not supported in Xcode 5, and you can't use it if you want to deploy an iOS 7 app. (Also, starting Feb. 1, all apps must be submitted with Xcode 5 and the iOS 7 SDK.) – Aaron Brager Jan 19 '14 at 20:44
  • Think of it this way: Base SDK is the *newest* iOS version you support; deployment target is the *oldest* version you support. – Aaron Brager Jan 19 '14 at 20:44
2

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

Daij-Djan
  • 49,552
  • 17
  • 113
  • 135