Unsupported compiler 'GCC 4.2' selected for architecture 'armv7'
Just installed new version XCode 4.2 onto my Mac. I tried compiling my project but got the following error:
Unsupported compiler ‘GCC 4.2’ selected for architecture ‘armv7’
Tried selecting arm7 in drop down for architechture in project and target settings. (The list actually shows just arm 7) still no use.
4 Solutions Collect From Internet About “Unsupported compiler 'GCC 4.2' selected for architecture 'armv7'”
you should actually select the LLVM compiler under “Compiler Version” instead of trying to set “Valid Architectures”
xcode build errors:
Unsupported compiler ‘GCC 4.2′ selected for architecture ‘i386′
This can be caused by importing a project for a pre- iOS 5 SDK into a copy of xcode with iOS 5 SDK only.
To fix, click your
Project -> Build Settings.
Then under Build Options, there is an entry for Compiler for C/C++/Objective-C. Choose Apple LLVM compiler 3.0.
There is a chance this could effect other aspects of your binaries as you are using a new compiler, so YMMV. That being said, it’s so far caused no issues for me.
If you have multiple projects included within a single xCode project, go to editor>Validate project settings. This will set the compiler to LLVM 5.0 even if you don’t see that option normally
Go to BuildSettings->BuildOptions->CompilerFor c/c++/Objective C and change that to LLVM GCC 4.2 from ‘Unsupported Compiler GCC4.2’
- Use of atomic properties in Objective C: Any side effects?
- iOS light linen background?
- iOS codesigning specs
- Disabling mobile Safari's focus event (zoom)
- iOS: store two NSMutableArray in a .plist file
- Populate a multidimensional array with a loop
- Can I serialize a RealmObject to JSON or to NSDictionary in Realm for Swift?
- iAd is shutting down. Should I remove the iAd framework from all my applications?
- Slow down internet for iOS simulator
- Swift split string at first match of a character
- How to implement Blowfish algorithm in iOS
- How to represent a generic JSON structure in Swift?
- How does String substring work in Swift
- binary operator '/' cannot be applied to two 'Double' operands
- Swift Converting Character to String