Xcode - Sharing app - PackageApplication failed with exit code 1
Had the same problem today..
The "Code Signing Resource Rules Path" was missing in the PROJECT - Build Settings
...
Opened the "Build Settings" tab of your project.
Searched "Code Signing Resource Rules Path", it was empty for me
and added $(SDKROOT)/ResourceRules.plist
credits goes to Adams Blair who described this problem with SDK2.2
How to fix Xcode 6.1 error while building IPA
I wish I knew why it works, but here's a fix that worked for me:
Found the fix !
Click on your project > Targets > Select your target > Build Settings
>
Code Signing Resource Rules Path
and add :
$(SDKROOT)/ResourceRules.plist
Xcode Command /usr/bin/codesign failed with exit code 1 : errSecInternalComponent
Open Keychain Access, then in the File menu select Lock All Keychains.
Then go back to Xcode and clean and rebuild. It will prompt you for your password again to unlock the keychain.
After this, assuming you have no other compile issues, it will succeed!
Xcrun PackageApplication, failed unable to copy application
I got this error because of a trailing '/' on the app path:
This fails:
xcrun -sdk iphoneos PackageApplication -v foobar.app/
This works:
xcrun -sdk iphoneos PackageApplication -v foobar.app
PackageApplication stopped working with OS X 10.10 (Yosemite) today
Found the answer.
The problem that occurred now was the "xcrun PackageApplication" something something line. I had to remove the "-sign some profile" parameter, then things started working again.
That said I don't know why signing was necessary before, and why it isn't now so can't tell if this is going to cause some problem later.
Xcode command line build error
Check this question:
Xcode - Sharing app - PackageApplication failed with exit code 1
Apple states that "there is no need..." it's like being ignored, but you are not violating any rule, I think other platforms that compile this projects that are still taking that field into account, so if you have problems compiling or archiving just add $(SDKROOT)/ResourceRules.plist
to Code Signing Resource Rules Path and try again.
Jenkins error after upgrading to Xcode 8 -resource rules
Found the Fix.
As the warning says --resource-rules has been deprecated.
I removed the resource-rules related script from "PackageApplication" file at location /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/
Edit the file "PackageApplication" as described below (Copy at diff location, edit and replace)
remove the lines ",resource-rules" and ", "--resource-rules=$destApp/ResourceRules.plist""
Related Topics
How to Get Image Metadata in iOS
iOS 13.1 Crash in Avaudio Player
What's the Uiscrollview Contentinset Property For
Since Xcode 8 and iOS10, Views Are Not Sized Properly on Viewdidlayoutsubviews
iPhone Is Not Available. Please Reconnect the Device
Hiding Uitabbar When Pushing a Uiview
Module Compiled with Swift 4.2.1 Cannot Be Imported by the Swift 5.0 Compiler
Ios: Custom Permission Alert View Text
Getting a Normal Looking Unicode Down Arrow in a Uilabel Like This ⬇
Mutating Self (Struct/Enum) Inside Escaping Closure in Swift 3.0
What Is Sandbox in iOS? How to Transfer Data Between One App to Another App
How to Check If a File Exists in Documents Folder
How to Change Text on a Back Button
Swift Performselector:Withobject:Afterdelay: Is Unavailable
Black Screen After Adding Scenedelegate and Updating Info.Plist