Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building App with ti.nfc on Ti 7.1.0 #22

Open
yozef opened this issue Jun 1, 2018 · 7 comments
Open

Building App with ti.nfc on Ti 7.1.0 #22

yozef opened this issue Jun 1, 2018 · 7 comments

Comments

@yozef
Copy link

yozef commented Jun 1, 2018

Running on Ti 7.1.0.GA
Mac OSX
Installed Module locally in project (and tried globally)
Test on Simulator iPhone X (OS 11.3)

Error on Building:

[INFO] :   Invoking xcodebuild
[ERROR] :  ** BUILD FAILED **
[ERROR] :  The following build commands failed:
[ERROR] :  	Ld build/Products/Debug-iphonesimulator/NFCTest.app/NFCTest normal x86_64
[ERROR] :  (1 failure)

Incidentally, I tried also with Ti 7.0.2

part of my tiapp.xml:

<property name="run-on-main-thread" type="bool">true</property>
    <ios>
        <enable-launch-screen-storyboard>false</enable-launch-screen-storyboard>
        <use-app-thinning>true</use-app-thinning>
        <entitlements>
            <dict>
                <key>com.apple.developer.nfc.readersession.formats</key>
                <array>
                    <string>NDEF</string>
                </array>
            </dict>
        </entitlements>
        <plist>
            <dict>
                <key>NFCReaderUsageDescription</key>
                <string>n.b. some privacy info goes here</string>
@hansemannn
Copy link
Contributor

Can you attach a trace log, uncovering the underlaying error?

@yozef
Copy link
Author

yozef commented Jun 1, 2018

sure. I've attached it here: https://www.dropbox.com/s/wofgb3rhmgb470h/NFCapp_traceLog.txt?dl=0

Looking at the trace log, could this be the culprit?

[TRACE] :  Undefined symbols for architecture x86_64:
[TRACE] :    "_OBJC_CLASS_$_NFCNDEFReaderSession", referenced from:
[TRACE] :        objc-class-ref in libti.nfc.a(TiNfcNfcAdapterProxy.o)
[TRACE] :  ld: symbol(s) not found for architecture x86_64
[TRACE] :  clang: error: linker command failed with exit code 1 (use -v to see invocation)

Also, the code is supper simple (basically the example code)

@hansemannn
Copy link
Contributor

Sure you are building with Xcode 9? The module is used in production for many devs.

@yozef
Copy link
Author

yozef commented Jun 2, 2018

yeah I'm sure it looks like a neat module.

Using XCode 9.3.1

@hansemannn
Copy link
Contributor

Hehe, yeah. I rather meant that it has to be something with your env then. Do you still have Xcode 8 installed aside Xcode 9? it may select the wrong one accidentally.

@yozef
Copy link
Author

yozef commented Jun 2, 2018

I hate bothering you with this.

I tried again on another computer with XCode 9.2 & Ti SDK 7.1.0.GA and got the same error when building.

n.b. I installed the module globally & locally within the modules folder of the project.
Also I only have one XCode version running on each machine.

@mpinch
Copy link

mpinch commented Sep 3, 2018

I have same issue with same error message; running example app. I'm on xCode 9.4 & have tried Ti SDK 6.3.0GA up to 7.3.1GA release

[TRACE] :  Undefined symbols for architecture x86_64:
[TRACE] :    "_OBJC_CLASS_$_NFCNDEFReaderSession", referenced from:
[TRACE] :        objc-class-ref in libti.nfc.a(TiNfcNfcAdapterProxy.o)
[TRACE] :  ld: symbol(s) not found for architecture x86_64
[TRACE] :  clang: error: linker command failed with exit code 1 (use -v to see invocation)

Also to add, I've tried the titanium library and local project installation of the module with the same results. Just simply including the module with a hello world app (no code references to the ti.nfc module) it still fails as above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants