When I try to do the Product --> Archive in Xcode, I am getting an Error: Linker command failed with exit code 1 (use –v to see invocation) clang
does anyone know the fix for this?
Thanks
Jim Beck
When I try to do the Product --> Archive in Xcode, I am getting an Error: Linker command failed with exit code 1 (use –v to see invocation) clang
does anyone know the fix for this?
Thanks
Jim Beck
I am also experiencing the same issue and error.
XCode project says: library not found for -lstdc++.6
XCode Version is: 11.3.1 (11C504)
PB Toolkit version is: 2017 0000.00
I am not seeing any choice to select 2019 option as is shown below from this case.
Is the only way to get past this to upgrade the PS Toolkit?
*********** Most important ***********************
Can Toolkit be upgraded without upgrading PB Desktop?
Is there any other fix to get past this error in XCode?
I'm having the same issue, it occurs during build process in Xcode on MAC.
(- lstdc++.6 ) is a flag setting for Linking along with other flags, I think these are the settings gets
passed when stand-alone projects in packaging wizard in Appeon.
@Marco, after 'right click revealed' it shows exactly as what James posted.
I was able to find it in Xcode project under Build setting>Linking>Other Linker Flags>
after clicking the values part, it shows more flags ie
- ObjC
- liconv
- licucore
-lxml2
- lz
- lstdc++.6
I tried removing this value, then I got tons of more error ( build faild).
Hi James,
Please select '2019' while package(please refer to step 5 in article below), it is support XCode 10.
https://www.appeon.com/support/documents/appeon_online_help/pb2019/powerserver_toolkit_user_guide/ch09s03s03.html
And please note that you are required to copy AppeonMobile.framework.zip to mac machine and extract it on MAC machine, please do not extract it on Windows machine.
And then Copy all of the files under the extracted AppeonMobile.framework folder into the reference folder under the extracted app package.
Please refer to article below for more detail.
https://www.appeon.com/support/documents/appeon_online_help/2017/appeon_mobile_tutorials/ch04s02s02.html
Regards,
ZhaoKai
sorry for the delay in getting back to this. this is the error we are getting. we are trying to Archive in XCode 10.2. We are packaging a Stand-alone Mobile Project in Powerserver 2017R3, Build 1880.
Here is the error code....any help would be greatly appreciated. I am not very familar with xCode.
Ld /Users/michellebeck/Library/Developer/Xcode/DerivedData/apMobile-bvqaahrgxdzgjeaefcyntxvmcnrz/Build/Intermediates.noindex/ArchiveIntermediates/EonNativeApp/IntermediateBuildFilesPath/apMobile.build/Release-iphoneos/apMobile.build/Objects-normal/armv7/apMobile normal armv7 (in target: apMobile)
cd /Users/michellebeck/Downloads/AP_MOBILE/AP\ Mobile
export IPHONEOS_DEPLOYMENT_TARGET=8
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk -L/Users/michellebeck/Library/Developer/Xcode/DerivedData/apMobile-bvqaahrgxdzgjeaefcyntxvmcnrz/Build/Intermediates.noindex/ArchiveIntermediates/EonNativeApp/BuildProductsPath/Release-iphoneos -L/Users/michellebeck/Downloads/AP_MOBILE/AP\ Mobile/reference -F/Users/michellebeck/Library/Developer/Xcode/DerivedData/apMobile-bvqaahrgxdzgjeaefcyntxvmcnrz/Build/Intermediates.noindex/ArchiveIntermediates/EonNativeApp/BuildProductsPath/Release-iphoneos -F/Users/michellebeck/Downloads/AP_MOBILE/AP\ Mobile -F/Users/michellebeck/Downloads/AP_MOBILE/AP\ Mobile/reference -filelist /Users/michellebeck/Library/Developer/Xcode/DerivedData/apMobile-bvqaahrgxdzgjeaefcyntxvmcnrz/Build/Intermediates.noindex/ArchiveIntermediates/EonNativeApp/IntermediateBuildFilesPath/apMobile.build/Release-iphoneos/apMobile.build/Objects-normal/armv7/apMobile.LinkFileList -miphoneos-version-min=8 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/michellebeck/Library/Developer/Xcode/DerivedData/apMobile-bvqaahrgxdzgjeaefcyntxvmcnrz/Build/Intermediates.noindex/ArchiveIntermediates/EonNativeApp/IntermediateBuildFilesPath/apMobile.build/Release-iphoneos/apMobile.build/Objects-normal/armv7/apMobile_lto.o -Xlinker -final_output -Xlinker /Applications/apMobile.app/apMobile -fobjc-link-runtime -ObjC -lstdc++.6 -liconv -licucore -lxml2 -lz -lAmp -lAwsLib -lUtility -lWebLibrary -lApiAI -lbarcode -lCardIO -lCordovaPlugin -lcurl -lEonJS -lEonZip -lharupdf -ljsc -lopencv_core -lopencv_imgproc -lPayPalMobile -lSqlite3 -lulrt -lzbar -lZXingObjC -lZXingWidget -framework Accelerate -framework AddressBook -framework AddressBookUI -framework AssetsLibrary -framework AudioToolbox -framework AVFoundation -framework CFNetwork -framework CoreAudio -framework CoreBluetooth -framework CoreGraphics -framework CoreImage -framework CoreLocation -framework CoreMedia -framework CoreTelephony -framework CoreText -framework CoreVideo -framework EventKit -framework EventKitUI -framework Foundation -framework ImageIO -framework JavaScriptCore -framework LocalAuthentication -framework MapKit -framework MediaPlayer -framework MessageUI -framework MobileCoreServices -framework OpenGLES -framework QuartzCore -framework SafariServices -framework Security -framework SystemConfiguration -framework UIKit -weak_framework UserNotifications -Xlinker -dependency_info -Xlinker /Users/michellebeck/Library/Developer/Xcode/DerivedData/apMobile-bvqaahrgxdzgjeaefcyntxvmcnrz/Build/Intermediates.noindex/ArchiveIntermediates/EonNativeApp/IntermediateBuildFilesPath/apMobile.build/Release-iphoneos/apMobile.build/Objects-normal/armv7/apMobile_dependency_info.dat -o /Users/michellebeck/Library/Developer/Xcode/DerivedData/apMobile-bvqaahrgxdzgjeaefcyntxvmcnrz/Build/Intermediates.noindex/ArchiveIntermediates/EonNativeApp/IntermediateBuildFilesPath/apMobile.build/Release-iphoneos/apMobile.build/Objects-normal/armv7/apMobile
ld: library not found for -lstdc++.6
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Thanks
Jim
Hi James,
right click on issue (red icon) --> reveal in log, in order to see what is causing that issue.
Best,
.m
Hi James;
1) What version & build of PowerServer are you using?
2) Is this error occurring in the PS "Packager" utility?
Regards ... Chris
We upgraded everything (PB IDE & Toolkit & Powerserver) to latest, re-packaged and when opened in XCode the error has gone.
Published to the APP Store successfully.