unsealed contents present in the bundle root, iOS Application - ios

When i try to run an iOS Project on Device (Previously developed by someone else), Im getting following code signing error.(I'm Using XCode 7.3 and project is using https://github.com/Carthage/Carthage
https://github.com/devxoul/CocoaSeeds)
<App Name>.app: unsealed contents present in the bundle root
Command /usr/bin/codesign failed with exit code 1
I tried to add -vvvv parameter expecting more information regarding the issue, but codesign was not giving more information than previous error.
Obviously the project runs on the simulator without any issue,
Any help to get much more information regarding which resource/file make the codesign fails, or any help to resolve the issue would be grateful
Thanks

Related

Command Code sign Failed with a nonzero exit code when building flutter app using Xcode (errSecInternalComponent)

I am getting getting this error:
/Users/administrator/Library/Developer/Xcode/DerivedData/Runner-xxxxxxx/Build/Intermediates.noindex/ArchiveIntermediates/Runner/InstallationBuildProductsLocation/Applications/Runner.app/Frameworks/App.framework: errSecInternalComponent
When building a flutter app.
I found some hints that might be related to xattrs.
xattr -rc folder/to/sources
does not help.
I saw that when running new builds, there are lots of files with com.apple.quarantine attributes in my app's folder.
So I also
xattr -rc ~/development/flutter
After this step, the com.apple.quarantine files stopped to appear, but I still get the same error.
I tried the possible solutions in https://medium.com/#ceyhunkeklik/how-to-fix-ios-application-code-signing-error-4818bd331327
My key / identity seems to be accessible. I also tried a restart and flutter clean.
EDIT:
I also cannot find any information about setting the debuglevel of the codesign binary - is that possible?
EDIT2: Now trying
Xcode 10, Command CodeSign failed with a nonzero exit code
In my case code sign failing issue happened because of keeping project files on shared iCloud directory. I realized that after trying out all popular suggestions like flutter clean or xCode wizardry actions related to this issue, so I finally managed to re-create the project in local non-shared drive directory and the problem disappeared.
I managed to fix that by switching off "Automatically manage signing" and used a distribution certificate and profile which I had to create on the Apple developer website beforehand.

React-native fails to build for ios because command codesign failed with a nonzero exit code

I recently updated my mac and all of a sudden I can't compile the application I've been working on in react-native. The error it gives is Command CodeSign failed with a nonzero exit code.
When it begins running this command, it says the Signing Identity is "-", even though that I have my signing correctly set in XCode.
It also says, ios/build/Build/Products?Debug-iphonesimulator/project.app: resource fork, Finder information, or similar detritus not allowed.
This also results in a `No bundle URL present." in the iOS simulator.
If it helps, I am using yarn ios to compile.
I have tried solutions previously written for other code signing issues, none of which are related to react-native. None of these solutions have worked.
Have you tried cleaning and rebuilding your project? I had a similar problem recently, and what worked for me is deleting everything from YOUR_PROJECT/ios/build/ and running react-native run-ios command again.

can't build for adhoc distribution appcelerator

I`m having lots of trouble with this one. I tried compiling an app for adhoc distribution and started with this error:
Failed to export archive to ipa
[ERROR] : The selected provisioning profile "" is most likely not a valid Ad Hoc provisioning profile.
[ERROR] : Please ensure you are using a valid Ad Hoc provisioning that is linked to the signing identity, then try again.
I "solved that part" running appc run -p ios -T dist-adhocthrough console line, but then I got
Cannot find module '/Users/ggomez22/Documents/Appcelerator_Studio_Workspace/MODI-Express-Dashboard/undefined'
[ERROR] Alloy compiler failed
also solved that one running sudo npm install alloy -g which also resulted in an error related to my defaultIcon.png (solved that) but now I'm stuck with
Session invalid. Please log in again.
I already tried logging in and out several times but the problem persists, I also tried with appc logout -D and had to use the code sent to my email to log in again but that didn't solve the problem either.
I need help with this. Thank you.
I will advise you to download Appc Studio & setup everything there. It looks like you are trying things piece by piece. Solve one & move to other problem. so it's better to avoid this tedious process & use Appc Studio IDE to build your project.
It's merely of 400MB & everything should be working fine.
Studio can also report you errors if there are any other because you can't be sure what's stopping you from building app from command line.
Looking at that Session Invalid issue, I used to solve it using appc login without logout as it refreshes the tokens & necessary things.

IOS /usr/bin/codesign failed with exit code 1 saying that APP Is a directory

I have an IOS application that used to run in my device and in the simulator without any problem. I had to make some changes in the APP directory structure and I created another project and imported the old app files. after that I receive the error
Command /usr/bin/codesign failed with exit code 1 telling that the APP was an directory as a matter if fact it is because I look at it using Finder. But any other app is in fact a directory and run ok.
When I try to run in the simulator XCODe says that I have no permission to run the APP.
I have tried all the solutions posted in Stackoverflow and other forum with no success.
Any idea.
Thanks
Surely too late for the OP, but for anyone else stumbling across this question, I had this error because I had a folder of data that happened to have the same name as my app.

Xcode Build Error - CodeSign

I am trying to test my iOS application on my iPhone. I keep getting the same error.
/Users/usrname/Library/Developer/Xcode/DerivedData/Navigation-abxszioyejjvsqfxzhvoyunubgef/Build/Products/Debug-iphoneos/AppName.app: replacing invalid existing signature
/Users/usrname/Library/Developer/Xcode/DerivedData/Navigation-abxszioyejjvsqfxzhvoyunubgef/Build/Products/Debug-iphoneos/AppName.app: CSSMERR_TP_NOT_TRUSTED
Command /usr/bin/codesign failed with exit code 1
-My provisioning profile and signing requests are good and valid.
-All certs/profiles/devices/App IDs are good and valid.
-I have tried deleting and re-creating the certs several times with no luck.
-The certs are set to use System Defaults instead of Always Trust
-My App ID is set to a xCode wildcard 123456.*
-I have set my Bundle Indentifer to justsometext, as from what I read in the docs, this doesnt matter because of the wildcard.
Can somebody please help me before I rip my hair out. Thanks!
I am using the latest version of Xcode and latest iOS on iPhone.
Have you correctly set the "Trust" section of Apple's WDRC certificate?
http://natelyman.com/index.php?option=com_content&view=article&id=105:what-is-cssmerrtpnottrusted&catid=39:iphone-sdk

Resources