Xcode9 beta: Error on 'Archive' in XCode with CoreNFC

Hi All,

I am doing a NFC Demo App with iPhone7 in iOS11 beta and Xcode9 beta

The project can successfully 'RUN' in my iPhone7

but when I want to 'Archive' in Xcode and put to testflight.It FAIL and come out below Error message

//----------------------------------------------

Undefined symbols for architecture arm64:

"_OBJC_CLASS_$_NFCNDEFMessage", referenced from:

objc-class-ref in AppDelegate.o

"_OBJC_CLASS_$_NFCNDEFPayload", referenced from:

objc-class-ref in AppDelegate.o

"_OBJC_CLASS_$_NFCNDEFReaderSession", referenced from:

objc-class-ref in ViewController.o

objc-class-ref in AppDelegate.o

ld: symbol(s) not found for architecture arm64

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

"_OBJC_CLASS_$_NFCNDEFMessage", referenced from:

objc-class-ref in AppDelegate.o

"_OBJC_CLASS_$_NFCNDEFPayload", referenced from:

objc-class-ref in AppDelegate.o

"_OBJC_CLASS_$_NFCNDEFReaderSession", referenced from:

objc-class-ref in ViewController.o

objc-class-ref in AppDelegate.o

ld: symbol(s) not found for architecture arm64

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

//-----------------------------------------

Is Xcode9 beta issues or something I do wrong ?

thanks in adv,

sam

Sorry I have no answer for this, but were you able to get it to actually read the tag? I call begin() on the session, it brings up the scanning interface, but it never actually reads the tag. isReady is always false.

Is Xcode9 beta issues or something I do wrong ?

It’s hard to say. If you create a small test project from one of Xcode’s template and put your NFC code in there, does it have the same problem?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Certainly, I can read the Ndef Tag with my iPhone7.


But when I use Xcode as "Archive" my project and submit to testflight. it FAIL to "Archive" and come put above message. So my client cannot download my App for testing. 😐

My project is pretty small, just scan the Ndef tag and print it on textview.

I use this project as develop

https://github.com/jensmeder/CoreNFC-Demo/blob/master/README.md


Also, I updated the IOS11 beta2 and Code9 beta2 as well, but doesn't help


Thanks!

There seems to be a problem with CoreNFC’s bitcode support in Xcode 9. You should definitely file a bug about that. For the moment you can workaround the issue by disabling bitcode, that is, setting the Enable Bitcode build setting (

ENABLE_BITCODE
) to No.

Please post your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
Xcode9 beta: Error on 'Archive' in XCode with CoreNFC
 
 
Q