0

Does swift3.0 support ios7?

when i run a swift3.0 project in ios7,it crash, and shows dyld:

Symbol not found: _kCLErrorUserInfoAlternateRegionKey Referenced from: /private/var/mobile/Applications/9D708DFE-C6B0-4C9A-9CEF-CB495903912D/YouKuHD.app/Frameworks/libswiftCoreLocation.dylib Expected in: /System/Library/Frameworks/CoreLocation.framework/CoreLocation in /private/var/mobile/Applications/9D708DFE-C6B0-4C9A-9CEF-CB495903912D/YouKuHD.app/Frameworks/libswiftCoreLocation.dylib

i cannot find doc in apple doc ,can anyone help me? thanks

zht415
  • 1
  • 3

1 Answers1

1

No.

Swift 3 is only compatible with iOS 8.0 and newer.

See answer here for more about why. If you'd like to program for iOS 7, I would suggest using a previous version of Swift and subsequently a previous version of Xcode - (ie 7.3) I believe on developer.apple.com they offer the option to download earlier release versions of their software.

Community
  • 1
  • 1
KSigWyatt
  • 1,368
  • 1
  • 16
  • 33
  • Instead of posting an answer that links to the other answer, you should instead vote to close this question as a duplicate of that other question. – rmaddy Nov 18 '16 at 15:21