SKMaps.framework: code object is not signed at all - ios

.Frameworks/SKMaps.framework: invalid resource specification rule(s)
Command /usr/bin/codesign failed with exit code 1
The error is related to: code object is not signed at all.
The same error occurs with Swift SKMapsSwiftDemo. I'm using Xcode 6.3, OS X 10.10.3 and iOS 8.3, but I tried Xcode 6.1, OS X 10.9.5 and iOS 8.1.3 too.
Adding script as --deep doesn't resolve the issue. Code Sign On Copy activated for SKMaps.framework destination Frameworks.
How may I resolve the issue?

Sorry for answering, I can't comment yet. I'm getting the same error in my project since I cannot install SKMaps from Cocoapods with Swift frameworks mixed.
Installing the framework manually as they tell in their webpage throws the same error:
/Users/Gabri/Library/Developer/Xcode/DerivedData/HolaSwift-bwlblhyipzsnozbxivjiuizsnrjk/Build/Products/Debug-iphoneos/E-Bike.app/Frameworks/SKMaps.framework: invalid resource specification rule(s)
Command /usr/bin/codesign failed with exit code 1
I have to say that this error is only thrown when building the app to a real iOS device, not in the simulator.

I managed to solve this by installing this library with Cocoapods with pod 'ScoutMaps-iOS-SDK' and then import SKMaps/SKMaps.h header to my Objective-C bridging header.
Hope it helps

Related

Xcode build error when building onto device - Library not found for -lDoubleConversion

So my app has run and built successfully on the Xcode simulators. The app is a react native app
However when trying to put it onto a device I get the error.
What steps do I need to take to get this to work?
Library not found for -lDoubleConversion
Notes:
-I am running the Xcode workspace file
-I did try use_framework! in the Podfile but I don't think that was right and caused more issues
also tried adding it to the podfile
The reason I had this error is that my iOS version required in my podfile was not the same as that as the min version in xcode.
The error generated by xcode wasn't helpful in this case and pretty ambiguous given the range of answers on the internet

App runs on simulator but can't build on iso device: Linker error build Failed duplicate symbol GoogleMaps.framework

This problem occurred after installing pod for google maps api
After 4 hours of research finally found out that there was no problem with GoogleMaps.framework neither with my project. All what required was Update Xcode. In version 6.2 the problem was there with no solution but after updating to 6.3.1 all problems are gone! Could be an xCode bug. Now I can breathe!!!

iOS Xcode compile error: unable to execute command: Segmentation fault: 11

I have a project which compiled perfectly in the past, but after the last Xcode update (6.3.2) I get a compile error whenever I try to run it directly on a device. Building and Running it in the simulator works fine. The Archive function works fine as well. But no matter what device I connect or what iOS version the device is running, I always get the same compile error:
Stack dump:
0. /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIFilter.h:221:39: current parser token 'NS_REQUIRES_NIL_TERMINATION'
clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal (use -v to see invocation)
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: arm-apple-darwin14.3.0
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ and include the crash backtrace, preprocessed source, and associated run script.
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /var/folders/p5/2yjs4f055hb0vvgl12yvj38r0000gq/T/SmallAdsSystem-a86b3e.m
clang: note: diagnostic msg: /var/folders/p5/2yjs4f055hb0vvgl12yvj38r0000gq/T/SmallAdsSystem-a86b3e.cache
clang: note: diagnostic msg: /var/folders/p5/2yjs4f055hb0vvgl12yvj38r0000gq/T/SmallAdsSystem-a86b3e.sh
clang: note: diagnostic msg:
********************
It shows me random files that I'm supposed to submit to the bug report.
I haven't made any code changes from a working version to the version causing the current problems and I even reverted to an earlier version which is live and running in the Appstore but still the same error.
I have deleted xcode and installed again trough the app store
I tried making changes to my code to maybe pinpoint any problems but since the source file of the problem changes every time, I don't really think anymore that it has anything to do with my code.
This is driving me mad.
Any help is much appreciated
I tried to add the paypal framework to my iOS Project (Using Xcode 7.2 and Objective-C language), When building it is not giving any error, but when I try to archive the Project and trying to make the IPA, I am getting that Error
unable to execute command: Segmentation fault: 11
Screenshot:
After huge trying I have disabled the Bitcode in Project's Target->Build Settings->Enable Bitcode. Now the build can be achieved. Please check the following screenshot.
I found a fix for my problem:
I'm using a virtual machine and opened the project directly in the shared folder. I moved the project to the documents and now it works!
unable to execute command: Segmentation fault: 11.
I was able to turn off the bitcode and able to achieve the ipa.
An in depth of what bitcode means can be seen here
We've just realized that segfault was caused by invalid unicode characters in our sources.
If you are using a virtual machine, then copy the files inside the virtual machine, don't import from your shared files, and it will work.
I had the exact same problem.
In my case I looked at the offending file and played around with it. I was able to resolve the error by commenting out a giant NSDictionary declaration:
NSDictionary* glyphNameToUnicode = [[NSDictionary alloc] initWithObjectsAndKeys:
#"A", #"A",
#"\u00C6", #"AE",
#"\u01FC", #"AEacute",
#"\u01E2", #"AEmacron",
This thing had probably 300 lines maybe more. Instead I moved the declaration into a file and loaded the dictionary from the file. Not sure if that helps, but in my case those files were not random...
Its deff a bug with xcode though...
Pods are provided xcode/.... path for installation from git and i installed xcode 7.3.1 and its named like xcode3 so i face this type of error but when i renamed it to xcode then this error is solved for me.
So In summary, First of all please check your xcode name in application section.
If it is not xcode then please rename it to xcode and try to run your app.
Apparently it was a bug in my Xcode version. Had to revert to an old one and everything worked again. With the newest update everything was working ok again.
In order to solve a problem (a known bug closed as a duplicate as of this writing) that caused apps built under 10.12 (macOS Sierra) to fail to launch under 10.9 (even when they'd done so without trouble previously), I'd installed 10.11 and Xcode 7.3.1 under a VMWare instance. Xcode (due to laziness on my part) was copied to the Desktop.
After reading SmarterSusheel's answer regarding a renamed Xcode, it dawned on me it may be path-related, so I moved Xcode to /Applications and tried again. Problem (mostly) solved. I say "mostly" because I also had to copy my project folder into the VMWare instance since it seemed to have issues building under the shared folder as well.
Setting Link-Time Optimization to NO in both Debug and Release mode is what resolved the problem for me.
I was facing similar issue:
clang: error: unable to execute command: Segmentation fault: 11
clang: error: linker command failed due to signal (use -v to see invocation)
Simply updating from Xcode 7.2 to 7.3.1 has resolved the issue!
I only had problem for i386 architecture when building for iPhone 4s simulator running 9.3
When disabling bitcode didn't work (suggested above), i tried to look at the source code. I didn't find any ascii related stuff (suggested by others), so I tried to comment out method by method until I found the offending line. For me the error was caused by this:
let keyboardSize = ((info![UIKeyboardFrameBeginUserInfoKey] as AnyObject).cgRectValue.size)
Changed it into:
let keyboardSize = (info![UIKeyboardFrameBeginUserInfoKey] as! NSValue).cgRectValue.size
Quit and reopen the Xcode worked for me !
make sure you clean the build folder after reopening the Xcode !
I was facing similar issue:
clang: error: unable to execute command: Segmentation fault: 11
clang: error: linker command failed due to signal (use -v to see invocation)
then i was change my Provisioning profile.

Unable to compile after upgrading Parse and Bolts frameworks in iOS app

I recently upgraded from Parse framework 1.4 to Parse framework 1.6, and I upgraded the Parse framework, the Facebook framework, Bolts framework, ParseUI framework, ParseFacebookUtils framework all to the latest version. I am now getting the error message:
Warning: usage of --preserve-metadata with option "resource-rules"
(deprecated in Mac OS X >= 10.10)!
/Users/<UserName>/Library/Developer/Xcode/DerivedData/<AppName>-
cqujidljgutxwkaudhsuhqoahrja/Build/Products/Debug-iphoneos/<AppName>.app
/Frameworks/Bolts.framework: bundle format unrecognized, invalid, or unsuitable
Command /usr/bin/codesign failed with exit code 1
I am running Mac OS X 10.10.2 and I have Xcode 6.1.1. I downloaded the Parse libraries from https://parse.com/docs/downloads/, and when the Bolts framework refused to compile, I tried compiling manually from the Github page at https://github.com/BoltsFramework/Bolts-iOS. Does anyone have any idea how to get this to work? What I've been able to find out so far is that the Bolts framework is missing a plist (info.plist) that OS X is expecting, but when I try to add that plist manually, it says that there is an unexpected item in the root of the folder. I've moved that to the Versions>A>Resources folder, and I get the same error message.
Your help is greatly appreciated.
I just realized that I am apparently an idiot, and I had imported the Parse frameworks as an Embedded Binary instead of a Linked Framework and Libraries. When I fixed this issue, the app compiled successfully. Thanks for your time.

xcode 4.5 conversion issue

I JUST finished my first app in Xcode 4.3.2 and want to test it on my iPhone which I (unfortunately) updated to OS 6 without thinking about the fact that I'd probably have to be using Xcode 4.5. So I downloaded the the 4.5 and tried to open my project in it, and I get the following error message all of a sudden:
apple mach-o Linker Error
Linker command failed with exit code 1 (use -v to see invocation)
My app was running JUST FINE in 4.3.2. I did not touch anything, I only opened the app in the new version and now I get a build failed with the above error. Can anyone help!? this is so frustrating! My app has Facebook integrated into it, so maybe that is related? I have no idea... any help would be greatly appreciated.
Hmm maybe you could try to see if the Facebook framework is added..

Resources