[31m[x] duplicate symbol _OBJC_CLASS_$_CDVLogger in[0m
CDVLogger.o
libCordova.a(CDVLogger.o)
[31m[x] duplicate symbol _OBJC_METACLASS_$_CDVLogger in[0m
CDVLogger.o
libCordova.a(CDVLogger.o)
[31m[x] ld: 2 duplicate symbols for architecture armv7[0m
the same build worked 10 days ago and today the build does not work more.
Ionic version: (check one with "x")
[ ] 1.x (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[x] 2.x
[ ] 3.x
I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
build iOS on ionic pro
Expected behavior:
build new version in dashboard.ionicjs.com
Steps to reproduce:
Application Id: 5a165360
[0KRunning with gitlab-ci-multi-runner 9.1.0 (0118d89)
on Mac OSX Runner (9327ea78)
[0;m[0KUsing Shell executor...
[0;mRunning on Ionics-Mac-3.local...
[32;1mCloning repository...[0;m
Cloning into '/Users/ionic/builds/9327ea78/0/project-1'...
[32;1mChecking out a0233bad as master...[0;m
[32;1mSkipping Git submodules setup[0;m
[32;1m$ fetch-updates[0;m
Checking for build process updates...
[32;1m$ build-ios[0;m
Downloading cached www/ dir...
Successfully downloaded www/ dir...
Installing [email protected]
npm WARN deprecated [email protected]: Use uuid module instead
/usr/local/bin/cordova -> /usr/local/lib/node_modules/cordova/bin/cordova
[33m[!] [0m/Users/ionic/builds/9327ea78/0/project-1/platforms/ios/SchoolAdvisor/Plugins/cordova-plugin-ionic/UNIHTTPClientHelper.m:127:101: [33mvalues of type 'NSUInteger' should not be used as format arguments; add an explicit cast to 'unsigned long' instead [-Wformat][0m
[body appendData:[[NSString stringWithFormat:@"Content-Length: %d\r\n\r\n", data.length] dataUsingEncoding:NSUTF8StringEncoding]];
[36m ^[0m
[33m[!] [0m/Users/ionic/builds/9327ea78/0/project-1/platforms/ios/SchoolAdvisor/Plugins/cordova-plugin-ionic/UNIHTTPClientHelper.m:206:38: [33m'sendSynchronousRequest:returningResponse:error:' is deprecated: first deprecated in iOS 9.0 - Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h [-Wdeprecated-declarations][0m
NSData * data = [NSURLConnection sendSynchronousRequest:requestObj returningResponse:&response error:error];
[36m ~~ ^~~[0m
[33m>[0m [39;1mCompiling[0m UNIHTTPRequest.m
[33m>[0m [39;1mCompiling[0m UNIHTTPRequestWithBody.m
[33m>[0m [39;1mCompiling[0m UNIRest.m
[33m>[0m [39;1mCompiling[0m UNIUrlConnection.m
[33m[!] [0m/Users/ionic/builds/9327ea78/0/project-1/platforms/ios/SchoolAdvisor/Plugins/cordova-plugin-ionic/UNIUrlConnection.m:53:43: [33m'initWithRequest:delegate:startImmediately:' is deprecated: first deprecated in iOS 9.0 - Use NSURLSession (see NSURLSession.h) [-Wdeprecated-declarations][0m
connection = [[NSURLConnection alloc] initWithRequest:request delegate:self startImmediately:NO];
[36m^[0m
[33m>[0m [39;1mCompiling[0m UNIBaseRequest.m
[33m>[0m [39;1mCompiling[0m UNIBodyRequest.m
[33m>[0m [39;1mCompiling[0m UNISimpleRequest.m
[33m>[0m [39;1mCompiling[0m UNIHTTPBinaryResponse.m
[33m>[0m [39;1mCompiling[0m UNIHTTPJsonResponse.m
[33m>[0m [39;1mCompiling[0m UNIHTTPResponse.m
[33m>[0m [39;1mCompiling[0m UNIHTTPStringResponse.m
[33m>[0m [39;1mCompiling[0m UNIJsonNode.m
[33m>[0m [39;1mCompiling[0m CDVSplashScreen.m
[33m>[0m [39;1mCompiling[0m CDVViewController+SplashScreen.m
[33m>[0m [39;1mCompiling[0m CDVStatusBar.m
[33m[!] [0m/Users/ionic/builds/9327ea78/0/project-1/platforms/ios/SchoolAdvisor/Plugins/cordova-plugin-statusbar/CDVStatusBar.m:281:44: [33m'setStatusBarStyle:' is deprecated: first deprecated in iOS 9.0 - Use -[UIViewController preferredStatusBarStyle] [-Wdeprecated-declarations][0m
[[UIApplication sharedApplication] setStatusBarStyle:style];
[36m^[0m
[33m[!] [0m/Users/ionic/builds/9327ea78/0/project-1/platforms/ios/SchoolAdvisor/Plugins/cordova-plugin-statusbar/CDVStatusBar.m:378:14: [33m'setStatusBarHidden:' is deprecated: first deprecated in iOS 9.0 - Use -[UIViewController prefersStatusBarHidden] [-Wdeprecated-declarations][0m
[app setStatusBarHidden:YES];
[36m ^[0m
[33m[!] [0m/Users/ionic/builds/9327ea78/0/project-1/platforms/ios/SchoolAdvisor/Plugins/cordova-plugin-statusbar/CDVStatusBar.m:411:14: [33m'setStatusBarHidden:' is deprecated: first deprecated in iOS 9.0 - Use -[UIViewController prefersStatusBarHidden] [-Wdeprecated-declarations][0m
[app setStatusBarHidden:NO];
[36m ^[0m
[33m[!] [0m/Users/ionic/builds/9327ea78/0/project-1/platforms/ios/SchoolAdvisor/Plugins/cordova-plugin-statusbar/CDVStatusBar.m:481:48: [33m'applicationFrame' is deprecated: first deprecated in iOS 9.0 - Use -[UIScreen bounds] [-Wdeprecated-declarations][0m
CGRect bounds = [[UIScreen mainScreen] applicationFrame];
[36m ^[0m
[33m>[0m [39;1mCompiling[0m IonicKeyboard.m
[33m>[0m [39;1mLinking[0m SchoolAdvisor
[31m[x] duplicate symbol _OBJC_CLASS_$_CDVLogger in[0m
CDVLogger.o
libCordova.a(CDVLogger.o)
[31m[x] duplicate symbol _OBJC_METACLASS_$_CDVLogger in[0m
CDVLogger.o
libCordova.a(CDVLogger.o)
[31m[x] ld: 2 duplicate symbols for architecture armv7[0m
[31m[x] clang: error: linker command failed with exit code 1 (use -v to see invocation)[0m
[33m>[0m [39;1mLinking[0m SchoolAdvisor
* ARCHIVE FAILED *
The following build commands failed:
Ld /Users/ionic/Library/Developer/Xcode/DerivedData/SchoolAdvisor-gizbdzbxoankgbdbbfxamesrohfc/Build/Intermediates/ArchiveIntermediates/SchoolAdvisor/IntermediateBuildFilesPath/SchoolAdvisor.build/Release-iphoneos/SchoolAdvisor.build/Objects-normal/armv7/SchoolAdvisor normal armv7
(1 failure)
+-------------+-------------------------+
| [32m[33mBuild environment[0m |
+-------------+-------------------------+
| xcode_path | /Applications/Xcode.app |
| gym_version | 2.46.1 |
| sdk | iPhoneOS10.3.sdk |
+-------------+-------------------------+
+-------------------------------------+--------------------------------------+
| [33mLane Context[0m |
+-------------------------------------+--------------------------------------+
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | ios |
| LANE_NAME | ios package_build |
| DOWNLOAD_CERTS_CODESIGNING_IDENTITY | iPhone Distribution: Vadim Kantor |
| | (532YXFZLRD) |
| DOWNLOAD_CERTS_TEAM_ID | 532YXFZLRD |
| DOWNLOAD_CERTS_PROJECT_NAME | SchoolAdvisor |
| DOWNLOAD_CERTS_CERT_PATH | /Users/ionic/builds/9327ea78/0/proj |
| | ect-1/cert_file.p12 |
| DOWNLOAD_CERTS_PROVISIONING_PATH | /Users/ionic/builds/9327ea78/0/proj |
| | ect-1/provision_file.mobileprovisio |
| | n |
+-------------------------------------+--------------------------------------+
+------+------------------------+-------------+
| [32mfastlane summary[0m |
+------+------------------------+-------------+
| Step | Action | Time (in s) |
+------+------------------------+-------------+
| 1 | default_platform | 0 |
| 2 | create_keychain | 0 |
| 3 | download_certs | 0 |
| 4 | import_certificate | 0 |
| 5 | update_project_codesi | 0 |
| | gning | |
| 6 | update_project_provis | 0 |
| | ioning | |
| 7 | shell command | 0 |
| 馃挜 | [31mgym[0m | 50 |
| 9 | shell command | 0 |
| 10 | delete_keychain | 0 |
+------+------------------------+-------------+
[31m
[!] Error building the application - see the log above[0m
[32;1mRunning after script...[0;m
[32;1m$ clean-up[0;m
Cleaning up files...
Successful clean up
[31;1mERROR: Job failed: exit status 1
[0;m
Facing same issue.
duplicate symbol _OBJC_CLASS_$_CDVLogger in:
/Users/dhavalsoni/Library/Developer/Xcode/DerivedData/myProj-clzckrqggoyxvzfaxuwqlbatkprj/Build/Intermediates/myProj.build/Debug-iphoneos/myProj.build/Objects-normal/arm64/CDVLogger.o
/Users/dhavalsoni/Library/Developer/Xcode/DerivedData/myProj-clzckrqggoyxvzfaxuwqlbatkprj/Build/Products/Debug-iphoneos/libCordova.a(CDVLogger.o)
duplicate symbol _OBJC_METACLASS_$_CDVLogger in:
/Users/dhavalsoni/Library/Developer/Xcode/DerivedData/myProj-clzckrqggoyxvzfaxuwqlbatkprj/Build/Intermediates/myProj.build/Debug-iphoneos/myProj.build/Objects-normal/arm64/CDVLogger.o
/Users/dhavalsoni/Library/Developer/Xcode/DerivedData/myProj-clzckrqggoyxvzfaxuwqlbatkprj/Build/Products/Debug-iphoneos/libCordova.a(CDVLogger.o)
ld: 2 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Duplicate of https://github.com/ionic-team/ionic/issues/12849
Solution: https://github.com/ionic-team/ionic/issues/12849#issuecomment-328472880
Hello! Thank you for opening an issue with us! I am closing this issue because it is a duplicate of Issue #12849 as already mentioned. Thank you for using Ionic
The actual solution (for me at least) was to remove the cordova-plugin-console as noted here,a bit further down the same thread that @BhawaniSingh mentions:
https://github.com/ionic-team/ionic/issues/12849#issuecomment-331105393
Thanks a lot @paqogomez
got this solution after spending two days of resolving this build issue. THANKS
@paqogomez YES! Thank you! Finally after much troubleshooting and many issues I built successfully
Notes for my iOS build with push plugins to succeed
cordova plugin rm phonegap-plugin-push
cordova plugin add [email protected]
cd platform/ios; pod setup; pod repo update; pod install;
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Most helpful comment
The actual solution (for me at least) was to remove the cordova-plugin-console as noted here,a bit further down the same thread that @BhawaniSingh mentions:
https://github.com/ionic-team/ionic/issues/12849#issuecomment-331105393