When I try to install my IPA from iPhone Configuration Utility, I get a "The argument is invalid." dialog. I cleared the console before installing, and there was no change in the console. This happens on iOS6.1 on an iPod Touch 5 and an iPad 3 as well as on iOS7b6 on an iPod Touch 5.
My IPA had an invalid symlink. Xcode actually has a warning for this, but it is very easy to miss.
Related
We are trying to test application on iOS 15 and found that we are getting this message App needs to be updated.
Can anyone please let me know the reason behind this message? Existing users will have to delete the app and install again to get rid of this alert.
I went into the same issue with my enterprise apps, and fortunately I've managed to fix it.
There are actually two reasons that can cause this issue on iOS 15 if you're deploying your apps using an Enterprise account. The root key of the issue is a new signature format, that is required on iOS 15. Apps released through the App Store are automatically resigned, thus why they aren't affected by the issue.
Also, note that the main cause for this is building IPAs with older MacOS versions. If you update to latest Big Sur, you should be able to generate an IPA that is correctly signed. If you don't want to update, read the solutions below.
First reason
The first reason, documented by Apple here, is that your IPA must use the new signature format. If the IPA has been built with MacOS 10.14 or higher, it should be good. To ensure your IPA have the correct signature, use following steps:
Rename MyApp.ipa to MyApp.zip and unzip (you'll get a Payload folder which contains MyApp.app)
In Terminal, run codesign -dv /path/to/MyApp.app
Look in the output the value next to CodeDirectory. If you see v=20500 or v=20400, you're good. If you see a value below 20400, you need to resign your app using following command: codesign -s "Your Codesign Identity" -f --preserve-metadata /path/to/MyApp.app (ensure you do this using MacOS >= 10.14, and re-run codesign -dv /path/to/MyApp.app to ensure you now get v=20400 or v=20500)
Zip the Payload folder and rename it to MyApp.ipa
Try reinstalling this IPA, it should work. If it doesn't, read the second reason below.
Second reason
An other possible reason, not documented by Apple, a bit more tricky, is that you might need to re-sign your app including the DER entitlements. To check if you need to do this, do this:
In Terminal, run codesign -dvvvvv /path/to/MyApp.app
Look in the output under Page size, you should see something like this:
-7=4ade7be00e0a7b6db853edc4843e7ece1eea646f6f13d1809f78fc50d8db461f //If this line doesn't exist or contains only 000..., you need to include DER entitlements
-6=0000000000000000000000000000000000000000000000000000000000000000
-5=1dfa58bd8ac3c4fb42142c1c4d28c436128b3a7460186a44526194fb690112bc
-4=0000000000000000000000000000000000000000000000000000000000000000
-3=ef08dbe5a7c355336e1fb571604b683ce1c54536cb59a6155a1d18387fd23f6e
-2=5b730fa46ffd405fd88da9606d82eda9af7f460f6049047afc176163326f5a7f
As commented in above block, if -7 isn't existent or if it only contains 000..., then that's the reason why the IPA doesn't install properly. To fix this, follow next step
Run codesign -s "Your Codesign Identity" -f --preserve-metadata --generate-entitlement-der /path/to/MyApp.app to resign your app including DER entitlements. Re-run codesign -dvvvvv /path/to/MyApp.app to ensure the -7 value is now correct.
Zip the Payload folder and rename it to MyApp.ipa
You should be able to install the IPA now! 🎉
I have fixed the issue with the following configuration: MacOS Big Sur(macOS 11.14) and Xcode 12.5.1.
I rebuild the package with the configuration mentioned above.
I uploaded the package to TestFlight.
I tested on iOS 15 device. Everything works as expected. No popup.
As far as I understood the the reason of the failure is updated signature format. In iOS 15 the new format is mandatory while on iOS 14 it only gives a warning.
More information about the signature can be found here: https://developer.apple.com/documentation/xcode/using-the-latest-code-signature-format
If you're using Xcode 12.4 or 13 and MacOS 10.15.4 or above in December it should be sufficient to create a new Provisioning profile and provision with that. The provisioning profile must have the DER entitlements in it. Please see https://developer.apple.com/forums/thread/682775 for a method to check your provisioning profile has the DER entitlements.
I have facing above same issue any try all above solution but not work.
Once i change below setting than after it will work.
Build Setting
change excluded architecture "Any SDK" to "Any iOS Simulator SDK" and value arm64
I just tried to get my own app on my iPhone without a developer account. The following are steps I did:
I patched Xcode and my project (Currency.xcodeproj) with JailCoder
I want to build the project with "iOS device" in Xcode. But I got a error message like "no device found". So I ran it in the emulator and I got the currency.app-file in /Users/Dogan/Library/Developer/Xcode/DerivedData/Currency-gjxrulouxbmjslbzslsplyehgfgm/Build/Products/Debug-iphonesimulator
SSH to iPhone in /var/mobile/Applications
Creating a new folder named FADE9826-4878-4458-B5BE-90AD4EB60FDF (I have to take a valid UDID. Have I use to specific tools to create a UDID? I have the UDID from an other example). I also created a directory in this folder with the name "Documents".
chown -R mobile FADE9826-4878-4458-B5BE-90AD4EB60FDF
scp -r Currency.app root#IP-ADRESS-OF-IPHONE:/var/mobile/Applications/FADE9826-4878-4458-B5BE-90AD4EB60FDF/
Restarting Springboard in SSH with "killall SpringBoard"
I got the app, but it doesn't work. Every time on click, it crashes and kicks me to the home screen. Had I missed something?
You missed that simulator builds don't work on iPhones, because they are built for the wrong CPU type. Simulator builds are Intel x86 apps, and the iPhone has an ARM CPU.
There might be other problems (I don't know how jailcoder works) but there's no way you're getting the simulator build running on the phone.
After downloading Jailcoder and going through the guided patch of Xcode and then patching your project, if your device is plugged into your computer, select the target type (where you can select simulator, iOS Device, etc.) and there should be a listing of your device's name.
I'm developing my application in xcode 4.5 and i want to create the .ipa file to transfer the project in to client's device. But unfortunately I can't install it in device. Giving a pop up says "Cannot install".
i have created the ipa and installed it from xcode 4.0.2. So i know the process. I thinks i have given correct provisionning profile too. Is there any reason or anyone can give me a tutorial on this in xcode 4.5?
Did you build the app with an ad-hoc distribution profile that includes the client's device UDID?
Alteratively, use Testflight which works extremely well for this sort of thing.
for replies. i found the solution in entitlements.plist file thr is a property called
get-task-allow. i had to set it to NO.
Tht wat happed with xcode 4.5.
Thank you
Assuming the ipa is correct, is the client's device running an OS supported by the ipa (check deployment target of your project)?
What do you see in the Xcode Organizer console for the device as you perform the install? There is likely an error message in the console that will give you a clue.
Are there any unsafe characters in the .ipa filename? I had a case once where iTunes was installing the app and changing the .ipa filename to be the app name. Well, the app name had a '/' in it, and that doesn't work so well in filenames. The console showed me the error as it occurred.
If you aren't installing with the device connected to Xcode, you can use the iPhone Configuration Utility to watch/record the console on a remote machine.
I'm getting this error when trying to build a project and run it on iPad iOS 5.0.1:
error launching remote program: device locked out
Also, in the Organizer I'm getting this message:
Xcode cannot find the software image to install this version.
Is there any solution?
try turning off the passcode protection on your iPad, it might work then... what xcode version are you using??
"Xcode cannot find the software image to install this version" is just a warning. wont do much harm
try to delete all apps in your device in setting>Management> there will be your developer id .make it untrust and then disconnect your device and again connect .it will ask you for trust click on trust and try installing your app on your device .this time it will be installed easily.
I am developing an application(using Xcode 4.2 and iOS-5-SDK) aimed for iOS-4 as well as iOS-5. I can run my app directly from Xcode as well as by creating IPA file and then installing on iPhone 4.2. But problem arises when I try to run application on iPod touch that is recently upgraded from iOS-3.x to 4.2.
When I try to run application directly from Xcode, it simply gives messsage "running myapp on iPod touch" but actually app is not installed on device and no error message is shown at console. When I try to install IPA file of same app from iTune on iPod touch I get message " Error 0xE8003FFE while installing myapp on iPod touch".
Do anyone has idea what might be the problem here? Thanks for any help in advance
I had to change architecture setting to armv6 & armv7 from armv7.
check Entitlement.plist and "can_be_debugged" flag