Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

Build failed - google-analytics-plugin

Dmitriy_I_
New Contributor I
1,627 Views

Hello, dear Sirs.

Since 3 december of 2015 I have encountered with build failed when I try to build IOS project with google-analytics-plugin plugin. Before this day build was successful. I think something happens on Intel XDK servers.

Please Help! :(((

 

duplicate symbol l030 in:
.../[App Name]/platforms/ios/[App Name]/Plugins/cordova-plugin-google-analytics/libGoogleAnalyticsServices.a(TAGContainerOpener.o)
.../[App Name]/platforms/ios/[App Name]/Plugins/cordova-plugin-google-analytics/libGoogleAnalyticsServices.a(GAITrackerModel.o)
ld: 223 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

 

with best regards,

Dmitriy Ivanov.

0 Kudos
1 Solution
PaulF_IntelCorp
Employee
1,627 Views

According to the page you reference:

As of version 3.14 Google Analytics supports bitcode, which may cause compiler errors under Xcode 6. If you are still using Xcode 6 consider downloading v3.13.

Our iOS build system is still using Xcode 6, we are in the process of upgrading it to Xcode 7, but no ETA on when that upgrade will be available. In order to use the v3.13 version of the library, you'll have to contact the plugin developers to figure out which version of their plugin still uses v3.13 of the Google Analytics library.

View solution in original post

0 Kudos
5 Replies
Elroy_A_Intel
Employee
1,627 Views

I have escalated this to our Intel XDK Build team.

0 Kudos
Elroy_A_Intel
Employee
1,627 Views

The iOS build system hasn't been recently. According to your reported error, it's seems to point to an issue in the libGoogleAnalyticsServices. You seem to have two conflicting links. This issues isn't related to the plugin not our build system. I recommend reviewing the logs for this plugin as well as posting a question to the plugin developer.

0 Kudos
Dmitriy_I_
New Contributor I
1,627 Views

Elroy Ashtian Jr (Intel) wrote:

The iOS build system hasn't been recently. According to your reported error, it's seems to point to an issue in the libGoogleAnalyticsServices. You seem to have two conflicting links. This issues isn't related to the plugin not our build system. I recommend reviewing the logs for this plugin as well as posting a question to the plugin developer.

Thank you for your reply.

I asked plugin developers the same question.

I have tried 2 different cordova plugins and i have the same result: same error:

I tried:

1. com.cmackay.plugins.googleanalytics (https://github.com/cmackay/google-analytics-plugin)

2. google-analytics-plugin (https://github.com/danwilson/google-analytics-plugin)

and have error:

Ld build/[App Name].build/Release-iphoneos/[App Name].build/Objects-normal/arm64/[App Name] normal arm64
    cd .../[App Name]/platforms/ios
    export IPHONEOS_DEPLOYMENT_TARGET=8.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/Developer/android-sdk-macosx/tools:/usr/local/ant/bin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -L.../[App Name]/platforms/ios/build/device -L.../[App Name]/platforms/ios/[App Name]/Plugins/com.cmackay.plugins.googleanalytics -F.../[App Name]/platforms/ios/build/device -filelist .../[App Name]/platforms/ios/build/[App Name].build/Release-iphoneos/[App Name].build/Objects-normal/arm64/[App Name].LinkFileList -dead_strip -weak_framework CoreFoundation -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreMedia -weak-lSystem -ObjC -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=8.0 -framework AssetsLibrary .../[App Name]/platforms/ios/build/device/libCordova.a -framework CoreGraphics -framework MobileCoreServices -lGoogleAnalyticsServices -framework SystemConfiguration -framework CoreData -lsqlite3 -lz -Xlinker -dependency_info -Xlinker .../[App Name]/platforms/ios/build/[App Name].build/Release-iphoneos/[App Name].build/Objects-normal/arm64/[App Name]_dependency_info.dat -o .../[App Name]/platforms/ios/build/[App Name].build/Release-iphoneos/[App Name].build/Objects-normal/arm64/[App Name]
duplicate symbol l030 in:
    .../[App Name]/platforms/ios/[App Name]/Plugins/com.cmackay.plugins.googleanalytics/libGoogleAnalyticsServices.a(TAGContainerOpener.o)
    .../[App Name]/platforms/ios/[App Name]/Plugins/com.cmackay.plugins.googleanalytics/libGoogleAnalyticsServices.a(GAITrackerModel.o)
ld: 223 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** BUILD FAILED **

 

What could possibly be the problem? I see that i get the same error with 2 different plugins. Plugin 'google-analytics-plugin ' used to work until 3 of December.

 

with best regards,

Dmitriy Ivanov.

0 Kudos
Dmitriy_I_
New Contributor I
1,627 Views

It's because of GOOGLE!!!!
GOOGLE made new version of GA SDK on 3 of December!!!!!

https://developers.google.com/analytics/devguides/collection/ios/v3/sdk-download?hl=en

But I still did not resolve the problem

 

with best regards,

Dmitriy Ivanov.

0 Kudos
PaulF_IntelCorp
Employee
1,628 Views

According to the page you reference:

As of version 3.14 Google Analytics supports bitcode, which may cause compiler errors under Xcode 6. If you are still using Xcode 6 consider downloading v3.13.

Our iOS build system is still using Xcode 6, we are in the process of upgrading it to Xcode 7, but no ETA on when that upgrade will be available. In order to use the v3.13 version of the library, you'll have to contact the plugin developers to figure out which version of their plugin still uses v3.13 of the Google Analytics library.

0 Kudos
Reply