cmackay / google-analytics-plugin

Cordova Google Analytics Plugin for Android & iOS
Apache License 2.0
89 stars 43 forks source link

Undefined symbols i386 since latest XCode update #16

Closed tststs closed 10 years ago

tststs commented 10 years ago

Hey there.

Following error occurs:

ld: warning: directory not found for option '-L"/***/Plugins/com.cmackay.plugins.googleanalytics"' Undefined symbols for architecture i386: "_OBJCCLASS$_GAI", referenced from: objc-class-ref in GoogleAnalyticsPlugin.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Any ideas? Thx

cmackay commented 10 years ago

Hi @tststs,

Thanks for the info. I will verify all the files are up to date and publish a new release.

Thanks,

-Craig

tststs commented 10 years ago

Hi @cmackay ,

Still the same error, after i updated to the new version. Just without the:

ld: warning: directory not found for option '-L"/***/Plugins/com.cmackay.plugins.googleanalytics"' part.

Is there any information i can provide, to help?

cmackay commented 10 years ago

One thing I would recommend trying is to create a new empty cordova project and see if you can reproduce it within a clean project. I have not seen that error before. If you could give that a try and let me know what you find that will help in determining if it is an environment issue or plugin issue.

cordova create analytics-test cd analytics-test cordova platform add ios cordova plugin add com.cmackay.plugins.googleanalytics cordova run ios

tststs commented 10 years ago

Works as expected. I just made a diff and found the error.

For some reason, libGoogleAnalyticsServices.a wasn't copied to: platforms/ios/***/Plugins/com.cmackay.plugins.googleanalytics

Just copied it manually from the analytics-test app and registered it in frameworks.

Thanks for the help. I really appreciate it! Greetings from Berlin and keep up the good work! :)

cmackay commented 10 years ago

Great, glad to hear that helped in resolving the issue.

Greetings from Seattle :) and let me know if you have any suggestions or questions about the project in the future!

Thanks,

-Craig