trigger.io error device-ios.app/Forge malformed object - ios

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.

Related

Getting frequent Kill:9 Error in Xcode and Terminal

I have recently upgraded the Mac OS to Ventura 13.2.1 and Xcode to 14.2, now once I try to compile any application with Xcode, I am getting Kill:9 related issue for random task/framework in the project. I also get Kill:9 issue sometime on terminal as well.
Listing the errors here:
failed to read asset tags: The command `` terminated with uncaught signal 9. The command had no output.
Driver threw jobFailedWithNonzeroExitCode(9, "") without emitting errors.
Unable to execute command: Killed 9 Clang frontend command failed due to signal.
Please help me to resolve this issue/crash.
Open project in Xcode.
Build the app with Simulator (I tried with iPhone 14 Pro)
Error occurs in the build
Ideally project should have compiled without any error.
It sounds to me that the problem is with the installation of Xcode because when an unprivileged task is attempted, the OS will kill it off (with signal 9).
What I recommend is for you to re-install Xcode.
When you first run the new Xcode, it should prompt you for an administrator password in order to install system related components. Make sure you do this step. Hopefully that should then allow you to compile and run your iOS apps.

Why I am getting the following error while running appium version 1.18.1?

Getting this error "An unknown server-side error occurred while processing the command. Original error: '13.3' does not exist in the list of simctl SDKs. No Simulator SDK versions are available on your system. Please install some via Xcode preferences."
I was getting the same exact error and then I updated appium to latest version and now it works.
The error speaks for itself: requested platform should be visible in xcrun simctl list output.
You either use incorrect developer tools dist or Xcode installation is corrupted. Not an Appium issue, but your environment.
Go to XCode and add a new simulator with iOS 13.3, you might need to update XCode as well in oder to do it.

Receive an error message when I type rake run:iphone on my Mac terminal

I'm trying to build a Rhodes application for Iphones and I'm following a tutorial (http://docs.rhomobile.com/en/2.2.0/rhodes/tutorial). When I type in the command rake run:iphone in my terminal I receive an error message.
Error message:
can not found XCode command line tools
Install XCode to default location
For XCode from 4.3 and later - you should install Command Line Tools package ! Open XCode - Preferences... - Downloads - Components - Command Line Tools
I've installed Xcode several times and installed the command line tools so I'm not sure why I am continuing to receive this error.
Perhaps try bundle exec rake run:iphone
Have you accepted the Xcode terms of service?
In the past that has blocked things for me.
You can open command space, type xcode and try to run it to check.

Packaging for iOS mysteriously fails

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!

Building Sencha App for iOS error

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.

Resources