I am trying to build the project using this as basis :
GitHub code
but it is giving me error when i am trying to archive the project, while running it directly on device is okay. If i turn bitcode to off it makes the build but exit with some error on the iphone because dlib library is not being added needed for detection.
ld: bitcode bundle could not be generated because 'path/lib/libdlib.a(threads_kernel_shared.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I can see there is some problem in generation of dlib library but have no idea how to solve it up.
If anyone can guide me through it, i will be really thankful for the guidance. Thank you.
Try this - Worked for me
Goto Build Settings -> Enable Bitcode -> Select 'No'
And Archive with Generic Device selected.
Select Generic iOS Device while archiving
Related
All kind time of day. The project on Swift uses the SDK for blueTouth printer Mini Thermal Printer POS-5805DD. The libPrinterSDK library (included with the printer) has been added to the root of the project.a and the PrinterSDK header file.h, header-file is connected via bridge, when you run the project on a real device-everything works correctly, no errors occur. But when you try to build a project to upload to the AppStore, at the very end when linovke libprintersdk library.a an error appears:
ld: bitcode bundle could not be generated because
'/Users/ivan/Documents/MyProject/PrinterSDK/libPrinterSDK.a
(GCDAsyncSocket.o)' was built without full bitcode. All object files
and libraries for bitcode must be generated from Xcode Archive or
Install build file
'/Users/ivan/Documents/MyProject/PrinterSDK/libPrinterSDK.a' for
architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
If there is any experience of building a project with libPrinterSDK files.a and PrinterSDK.h, I would really appreciate any help. Thanks.
Im not sure your project has turn Enable Bitcode off yet, if not, try to set No like this image below and Archive project again.
If it doesn't work, you can refer here
I am trying to archive (create an IPA) for a project, but I get stuck with the following error...
ld: '/Users/anupsaund/Desktop/mobileapp-ios/GoogleAnalytics/libAdIdAccess.a(TAGActualAdIdAccess.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '/Users/anupsaund/Desktop/mobileapp-ios/GoogleAnalytics/libAdIdAccess.a' for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Can anyone help me understand where the error could be?
IS it in the google analytics library or somewhere else?
How would I go about getting the verbosity via Xcode to show me the calling code where the error threw?
Any help would be greatly appreciated.
Bitcode is enabled in your project settings but your app was compiled without it. To fix this you can simply set Enable Bitcode in the project and library settings to No. Hope this helped!
I am trying to archive a project in Xcode (9.2) and I Get the below error.
ld: bitcode bundle could not be generated because '/Users/myUser/Documents/iOSApps/Test/Pods/AWSCognitoIdentityProviderASF/AWSCognitoIdentityProviderASF/Internal/libAWSCognitoIdentityProviderASF.a(AWSCognitoIdentityASF.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Based on other StackOverflow answers, I have set Enable BitCode -> No within my App Build Settings
Below is the image of the BitCode settings in the App. However, I still get the above error. Could some one please help me resolve this issue ?
I'm using a third-party framework which helps me to connect a device(Frameworks device). I'm getting
MySignalsConnectKit' was built without full bitcode. All frameworks
and dylibs for bitcode must be generated from Xcode Archive or Install
build for architecture armv7 clang: error: linker command failed with
exit code 1 (use -v to see invocation)
error while trying to achieving. I can successfully build. I searched it but still can't solve the problem. Thank you!
Problem is probably because your third-party framework wasn't built with bitcode. If your application is archived with "Enable bitcode: YES" than all your frameworks must be built with bitcode also. Try to change it to NO, it may help. But then your archive will not contain bitcode. Better would be to get MySignalsConnectKit built with bitcode and use that build instead of one without bitcode.
I'm now using Xcode 4.6 but cannot build my app on a device but perfectly working on simulator. It is looking my lbxml2, I already followed the solutions given by other users like adding "${SDK_DIR}/usr/include/libxml2" to Header Search Paths under Build Setting, include in Link Binary With Libraries under Build Phases but still no luck.
Before I switched to Xcode 4.6, it was building on Xcode 4.5. So, I really don't know what is wrong.
Thanks!
EDIT:
I am getting this error:
ld: library not found for -lxml2
clang-real++: error: linker command failed with exit code 1 (use -v to see invocation)
Command /Applications/Xcode 4.6/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ failed with exit code 1
How are you trying to link your library in?
A "-lxml2" line in your build settings?
When I add my dylibs to my project, I usually do it the way you see in my screenshot.
Try this and see if it works for you also: