XCODE 9 and IOS 11 - archive errors

I am trying to create an archive for a XCODE 9 app using NFC core and getting errors that I cant figure out having tried many settings. We are using the new NFC Core framework in the app and all works perfectly when running on devices etc - just wont create a archive so we can add to TestFight.. for external testing. Erros we are getting:


This is just a warning, but maybe it is why it goes horribly wrong later - what should be used for IOS 11 Archive builds if not armv7 or armv7s?

Showing All Messages

Warning: iOS 11.0.0 does not support armv7



ld: warning: Auto-Linking supplied '/Users/chrishumphries/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks//CoreNFC.framework/CoreNFC.tbd', bitcode bundle could not be generated because '/Users/chrishumphries/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks//CoreNFC.framework/CoreNFC.tbd' was built without full bitcode. All frameworks and dylibs for bitcode must be generated from Xcode Archive or Install build

Undefined symbols for architecture armv7:

"_OBJC_CLASS_$_NFCNDEFPayload", referenced from:

objc-class-ref in NFCScanView.o

"_OBJC_CLASS_$_NFCNDEFReaderSession", referenced from:

objc-class-ref in NFCScanView.o

"_NFCErrorDomain", referenced from:

__T0SC14NFCReaderErrorV10Foundation16__BridgedNSError7CoreNFCAcDP03_nsB6DomainSSfgZTW in NFCScanView.o

"_OBJC_CLASS_$_NFCNDEFMessage", referenced from:

objc-class-ref in NFCScanView.o

ld: symbol(s) not found for architecture armv7

clang: error: linker command failed with exit code 1 (use -v to see invocation)


Any help or suggestions would be helpful - just confirmation that you are able to create archives for IOS 11 Beta in its current state.

I had the same problem with Xcode 9 GM, trying to archive a build that runs fine on ios 11 latest.

Deprecations and Removal Notices

iOS 11 no longer supports armv7 or armv7s (32-bit). If an iOS target has an iOS Deployment Target of 11, then it will not build for 32-bit. iOS targets with an iOS Deployment Target earlier than 11 will still build for 32-bit by default. (32163517)


Try lowering the deployment target or file a bugreport if you think the symbols should be present if the target specified is lower than 11 but this could be cache 22.

Same here, generated archive on Xcode Version 9.0 (9A235), the ipa generated from the archive works fine on iOS v10.3+ and iOS v11 but not on iOS v9

Below is the error logged in debugger:

dyld: Symbol not found: _OBJC_CLASS_$_NSURLSessionStreamTask

Referenced from: /private/var/containers/Bundle/Application/F54B4961-654F-4D39-83E2-C68E877E34FD/REALTrans.app/Frameworks/Alamofire.framework/Alamofire

Expected in: /System/Library/Frameworks/Foundation.framework/Foundation

in /private/var/containers/Bundle/Application/F54B4961-654F-4D39-83E2-C68E877E34FD/REALTrans.app/Frameworks/Alamofire.framework/Alamofire

Furthermore, I verified the application payload by unzipping the ipa, I see the all required frameworks present in /Frameworks folder of app payload.
Clueless whats going wrong.

XCODE 9 and IOS 11 - archive errors
 
 
Q