I ran this command to create an .ipa file with forge, and it worked:
forge package ios --ios.profile.provisioning_profile name.mobileprovision
Where "name" is the name of my provisioning profile.
The program crashed immediately on my iPhone. I tried repackaging using the exact same bash command, but now I get this error:
[ ERROR] Failed when running /usr/bin/codesign: codesign_allocate: object: /Users/me/Coding/gits/Project/development/ios/device-ios.app/Forge malformed object (unknown load command 43)
/Users/me/Coding/gits/Project/development/ios/device-ios.app: object file format unrecognized, invalid, or unsuitable
What am I doing wrong?
For the future - I tried following the advice of trigger.io - Can't create ipa-file anymore to downgrade to a lower version of forge. That didn't work.
But completely reinstalling XCode did! So if you run into this problem, as a last resort you could always try that!
Related
I'm developing an iOS App using Firebase SDK, The app runs perfectly on the simulator, but when I try to run it on an actual device I'm getting an error like this
Also when I'm trying to archive it. I forgot to tell that I used cocoapods to install Firebase SDK. Thanks!
I had this error because the xcode version.
I have created the project using the xcode beta version, then i updated it and got this error.
hours later, when I gave up trying to resolve this error, when trying to install another pod, this error occurred:
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:118:in git_version': Failed to extract git version fromgit --version("xcrun: error: active developer path (\"/Applications/Xcode-beta.app/Contents/Developer\") does not exist\nUsesudo xcode-select --switch path/to/Xcode.appto specify the Xcode that you wish to use for command line developer tools, or usexcode-select --installto install the standalone command line developer tools.\nSeeman xcode-select` for more details.\n") (RuntimeError) ...
when trying to run the
pod-install command
Then I ran the sudo
xcode-select command --switch path / to / Xcode.app
which was prompted for the error, and the Firebase-related error was miraculously fixed. Hope it could helps someone.
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
I am trying to implement Jenkins CI to generate build for iOS. I have latest Xcode 7.1 installed and ipa is getting generated without error. While trying to install the ipa through download link I am getting an error saying "Cannot install this time". Also I tried to install the same through iTunes, but getting an error saying "1 item could not be synced" and iTunes showing an error saying "The app "xxxxx" was not installed on the iPhone "xxxxxx" because an unknown error occurred (0xE8000005)".
Code signing certificate & provisioning profiles are proper and I am able to install the ipa generated from XCode.
Any help would be appreciated. Thanks :)
I was facing the same issue. Using Jenkins 2.5 and Xcode 7.3.1. Jenkins successfully build iOS app packaged the ipa, but the ipa did not install on the iPhone neither with iTunes nor when downloaded from TestFairy. Getting the same error "The app "xxxxx" was not installed on the iPhone "xxxxxx" because an unknown error occurred (0xE8000005)".
In the Jenkins logs I noticed following:
22:03:10 ### Checking original app
22:03:10 + /usr/bin/codesign --verify -vvvv /Users/jenkins/.jenkins/workspace/app-ios-build-job/build/MyAppProd.app
22:03:10 Program /usr/bin/codesign returned 1 : [/Users/jenkins/.jenkins/workspace/app-ios-build-job/build/MyAppProd.app: a sealed resource is missing or invalid
22:03:10 file added: /Users/jenkins/.jenkins/workspace/app-ios-build-job/build/MyAppProd.app/MyAppProd.app
22:03:10 ]
22:03:10 Codesign check fails : /Users/jenkins/.jenkins/workspace/app-ios-build-job/build/MyAppProd.app: a sealed resource is missing or invalid
22:03:10 file added: /Users/jenkins/.jenkins/workspace/app-ios-build-job/build/MyAppProd.app/MyAppProd.app
22:03:10
22:03:10 Done checking the original app
On further search found the answer posted by bladebunny at https://github.com/Carthage/Carthage/issues/782
Issue turned out to be duplicate package commands on Jenkins that resulted in the app being signed twice -- and then causing install to fail. Solution was to change Jenkins Xcode plugin settings. Under the 'General Build Settings' - we found you can't check both "Generate Archive" and "Pack application and build .ipa?" settings. The plugin issues log seems to suggest the former setting is being deprecated. We use the latter setting and are now able to successfully deploy the app with our custom dynamic framework.
The above fix worked for me.
I am trying to run this weather tutorial app on an actual iPhone (I've got it working on the emulator so far).
[ERROR] Failed when running /usr/bin/codesign: codesign_allocate:
object:
/Users/cdplMBP17/Documents/AppDev/trigger/development/ios/device-ios.app/Forge
malformed object (unknown load command 43)
/Users/cdplMBP17/Documents/AppDev/trigger/development/ios/device-ios.app:
object file format unrecognized, invalid, or unsuitable
Thanks in advance.
This can happen if you have an older version of Xcode or if the Xcode command line tools have got into a bad state.
I recommend trying the following
1) Make sure the latest Xcode is installed from the app store.
2) Make sure the command line tools are installed and Xcode is aware they are installed. To install the command line tools, open the Xcode preferences and go to Downloads, there should be an install button next to Command Line Tools (see the image below).
If this doesn't help then your version of OS X and the full log output from the failed run on a device would be helpful.
since I dont get an answer on sencha touch forum I will ask you fellows how to build my sencha app for iOS.
Actually, since I upgraded to the SDK Tools RC, I am able to package and run it for iOSSimulator.
But when I try to package to iOS it gives me the following error:
on terminal:
sencha package myconfig.json
Error:
The application was successfully packaged
codesign_allocate: for architecture armv7 object: /Users/kinhow/Documents/myapp/build///My App.app/stbuild_template malformed object (unknown load command 8)
/Users/kinhow/Documents/myapp/build///My App.app: object file format invalid or unsuitable
Failed to execute system command while signing application with error 256
Failed to package application
Hope you guys can save me
The packager uses Mac OS X built-in utility codesign. Load command 8 is VERSION_MIN_IPHONEOS and if codesign does not understand it that means on your computer it's outdated, you can either update your OS or install latest Xcode.