Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

After upgrade: 601 duplicate symbols for architecture i386 #769

Closed
ghost opened this issue Mar 31, 2016 · 5 comments
Closed

After upgrade: 601 duplicate symbols for architecture i386 #769

ghost opened this issue Mar 31, 2016 · 5 comments

Comments

@ghost
Copy link

ghost commented Mar 31, 2016

Expected Behaviour

Build iOS version

Actual Behaviour

...
duplicate symbol OBJC_METACLASS$_GSDK_PBMessageSignatureProtocol in:
/Users/stephan/c9sdk/cordova-projects/yn/platforms/ios/Pods/GoogleInterchangeUtilities/Libraries/libProtocolBuffers_external.a(PBUtilities.o)
/Users/stephan/c9sdk/cordova-projects/yn/platforms/ios/YukonNow/Plugins/phonegap-plugin-push/GCM/Libraries/libProtocolBuffers.a(PBUtilities.o)
duplicate symbol OBJC_CLASS$_GSDK_PBMessageSignatureProtocol in:
/Users/stephan/c9sdk/cordova-projects/yn/platforms/ios/Pods/GoogleInterchangeUtilities/Libraries/libProtocolBuffers_external.a(PBUtilities.o)
/Users/stephan/c9sdk/cordova-projects/yn/platforms/ios/YukonNow/Plugins/phonegap-plugin-push/GCM/Libraries/libProtocolBuffers.a(PBUtilities.o)
ld: 601 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Reproduce Scenario (including but not limited to)

Steps to Reproduce

On an existing project I:

updated android platform to v 5.1.1
rm platform ios
add platform [email protected]

build android (worked)
run android on device (worked)

build ios (worked)

in platform/ios I executed:

pod init
edited Podfile
pod install

after pod install I got message:

!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target YukonNow to Pods/Target Support Files/Pods-YukonNow/Pods-YukonNow.debug.xcconfig or include the Pods/Target Support Files/Pods-YukonNow/Pods-YukonNow.debug.xcconfig in your build configuration (cordova/build-debug.xcconfig).

[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target YukonNow to Pods/Target Support Files/Pods-YukonNow/Pods-YukonNow.release.xcconfig or include the Pods/Target Support Files/Pods-YukonNow/Pods-YukonNow.release.xcconfig in your build configuration (cordova/build-release.xcconfig).

added

include "Pods/Target Support Files/Pods-YukonNow/Pods-YukonNow.debug.xcconfig"

include "Pods/Target Support Files/Pods-YukonNow/Pods-YukonNow.release.xcconfig"

to the respective xcconfig files.

Platform and Version (eg. Android 5.1.1 or iOS 9.3)

(Android) What device vendor (e.g. Samsung)

Cordova CLI version and cordova platform version

cordova --version     6.1.0
cordova platform version android   5.1.1

Plugin version

cordova plugin version | grep phonegap-plugin-push   1.6.1

Sample Push Data Payload

Sample Code that illustrates the problem

Logs taken while reproducing problem

see above

Any idea how to fix that?

@ghost
Copy link
Author

ghost commented Mar 31, 2016

Well, not pods required anymore.

@ghost ghost closed this as completed Mar 31, 2016
@athattayathu
Copy link

I am currently experiencing the issue detailed above @bardu. Would you mind explaining how you solved this issue a bit more?

@dhirajb1989
Copy link

Hi, since the plugin already has the librariries required for gcm ios, it is causing the problem... You don't have to add any library for ios which you usually do by pod install...

@athattayathu
Copy link

Thanks for the quick reply. Got it working once we removed Pods.

@lock
Copy link

lock bot commented Jun 4, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 4, 2018
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants