iOS Apps Launches but immediately closes on iPad - ios

I have 3 iOS apps developed originally with Delphi Berlin then Tokyo and now with Rio.
Since updating to Delphi Rio (10.3.1) each of these apps close immediately after launch.
These apps will compile and install via Mac to iPad (12.1.4) but when they launch, they immediately close. I suppose they are crashing. However, I have compiled and uploaded the exact same apps to the App Store and when the apps are downloaded and installed from App Store they run perfectly. They simply will not run under Development install on any iOS device I have tried.
I am running Delphi 10.3.1, PAServer 20, iOS 12.1.4 on iPad and XCode 10.1 on the Mac.
Previously on Delphi Tokyo I could compile these exact same apps and they ran fine on the iPad. I even created a simple new app with nothing but a label and I get the same results.
Does anyone have any suggestion or ideas as I have tried everything I can think of?

Problem Solved. Found the "Trusted" properties of the signing certificate on the the Mac had to be edited. This resolved the problem. Went to Utilities / Key Chains / My Certificates, selected the certificate and changed from Trusted to "Use System Defaults". This resolved the issue completely and now the apps run correctly.

Related

Deploying Apache Cordova app to iPad without Apple developer account

After having developed an app for a friend using Visual Studio 2013 Pro with the Apache Cordova Extension, I hoped to also get it runnning on an iPad 3 as fast as with Android. However, things proved to be more complicated than originally thought: The 99$ for an Apple developer account would be far too high for a single device development (the app is intended to only work on one device, no commercial intentions).
At least I now have the ability to use Mac OSX and XCode, which is connected to Visual Studio via network. Installing the app in the iOS simulator works as expected, but I'm struggling with deploying it on the iPad. I already considered jailbraking the device, as the warranty is yet expired and it wouldn't be a problem for my friend. According to the Information I found it would be possible; however, I could not find much about how to do that.
Thanks in advance.
After several months I finally found a working solution:
The latest XCode version (7 Beta 2) is able to sign iOS applications using an ordinary AppleID instead of a $100 developer license.
First, you will need to prepare the vs-mda-remote node plugin on your Mac and be able to build applications [See here how]. Using an appropriate deployment target in Visual Studio, the app can be tested within a virtualized iOS environment.
However, the deployment options Remote Device and Local Device will both fail when you haven't subscribed to the Apple Developer Program. Other methods (described here or here) requiring jailbreaking the device haven't worked for me either.
Interestingly, Apple seems to have changed their strategy not much time ago , finally allowing to sign and deploy apps on non-rooted iOS devices.
Whenever an app is built for the iOS simulator, vs-mda-remote will create a whole new build folder (named using a 3 - 5 digit random number) located in ~/remote-builds/builds. Inside that build folder, you will need to find and open the XCode project file with XCode 7 (example path: ~/remote-builds/builds/654/cordovaApp/platforms/ios/YOUR_PROJECT_NAME.codeproj).
After having connected and detected your iOS device, you should be able to select it as deployment target. Then you should follow these instructions, basically just adding an AppleID which should be used to sign the app. This wasn't possible with earlier XCode versions and is certainly much easier than using one of the "hack"-like techniques involving jailbreaking your device and practically voiding it's warranty.
Finally, you will only need to set the Code Signing Identity to the registered AppleID (for both the Project and the Target) and you're ready to deploy your app.
This method worked for me using iOS 8.3 and Mac OSX Yosemite 10.10.4.
If there are any other questions, please feel free to ask.
in Visual Studio 2015 Community RC, there is an option to debug the app developed by cordova in 'remote device' (iPhone or ipad) connected to the Mac osx. Pls. try it.

Deploy Delphi XE7 app to iOS 8

Im going the process of setting up my Delphi XE7 to create iPhone apps.
The environment is :
Delphi XE7
New Mac - OS X Yosemite
XCode 6.1.1 (6A2008a)
iPhone 4 running iOS 8.1 (ie I updated the OS to the latest version)
Ive followed the demos, obtained an Entreprise License from Apple etc
iPhone has Provisioning Profile assigned to it. When I go XCode -> Device, It shows the Provisioning Profile installed.
When I run to the simulator, all goes well :-)
When I run to my iOS Device (iPhone running iOS 8.1) I receive the following error message :
Unable to install package : e8000097
I cant seem to find any info on what the error code actually means, to help track down the fault.
Does anyone recognise the error code e8000097?
This error is generated when I build my app within the Delphi IDE.
You cannot run to an iOS 8 device as "debug", but you can deploy to the device as an adhoc build and then put lots of debug messages into you app.
Have a look at this blog:
http://blogs.embarcadero.com/sarinadupont/2015/01/29/ios-813-app-deployment-steps-for-xe7
I ended up editing the entitlements file so that all the text is on 1 long line with absolutely no line breaks at all. That worked for me (after many days of trial and error)

iOS 8 Read console logs from user devices without installing Xcode

Any ideas how to get console logs from a user device running iOS 8?
Previous methods, including the iPhone Configuration Utility, do not seem to work with iOS 8 - the latter just doesn't show anything for the console. The older related iOS apps stopped working since iOS 7.
Installing Xcode is not an option, since the user is most likely running Windows, and in any case will not tolerate a multi-GB download and install.
We have an other option, which is, by installing itools and follow the below navigation where you can see the console logs.
Connect Your device to Windows. click on itools->Under iPhone->>Advanced->System logs.
Install itools from this location http://itools-for-windows.en.softonic.com/
iTools
To get real time iOS system logs on windows machine.
Note: Based on iOS / Xcode / iTunes (overall Apple) updates, this information is subject to change. With current iOS version 8.1.3, the iTools software version 3.1.7.6 works great.
Open iTools.
Connect your iDevice.
In the left pane under your device, choose 'Advanced'.
Click on 'System Logs'.
You'll get real time system logs just as Console log in Xcode.
As of iOS8 update iPhone Configuration Utility cannot get the logs. from a tutorial in testflight website, they say specifically for iOS 8 devices use xCode. So I guess you are out of luck.

Upgraded Adhoc app deployment doesn't work on iOS previous to 7.1

I had trouble with installing -deployed adhoc- development app before upgrading to iOS 7.1 and XCode 5.1
XCode 5.0 wasn't recognizing iPhones with iOS 7.1.
We upgraded and everything seems fine until we deployed as adhoc distribution.
I followed solution at Enterprise app deployment doesnt work on ios 7.1 and it greatly worked for installing the app in iphones with ios 7.1
But, now iphones with ios 7.0x can't install the app.
Results that some of our boss' bosses hadn't upgraded and don't want to, and desires backwards compatibility.
The app starts downloading but stops in the middle, the icon is completely grayed out and the app doesn't open.
Looking for alternatives, we are trying to acquire another macbook with previous system but it had been very hard to obtain our current resources.
We started implementing in the html page a script for recognizing the device, using user-agent variable, we plan to use this script to choose different plist files for iOS version 7.1 or previous. We expect it works as soon as we obtain the ipa in the newer macbook, as soon as we get it...
I wish for an easier solution that allows compatibility with newer versions and let us avoid project 'branch'ification.
Thanks a lot!

iOS - install application from XCode without Developer Program subscription removed SDKs

I have tried to deploy an iOS application to an actual device (iPad 2, OS version 7.0.4). I followed this guide with regards to creating my own self-signed certificate. However, the final step that sets the iPhone SDK to use the certificate was not updated so I used this guide and replaced it with sudo /usr/bin/sed -i .bak 's/XCiPhoneOSCodeSignContext/XCCodeSignContext/' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Info.plist instead.
I had to restart XCode (Version 4.6.3), changed the code sign fields. However, when I tried to deploy the application, it seemed that the SDKs for iPad and iPhone were not there any more. So I tried to create a new application, and when the dialog box appeared for the project template, the iPad and iPhone options were gone.
Do I have to reinstall the SDKs? My worry here is that if I do, the certificate I created might be invalidated, and if I repeat the process, I might screw up the SDKs again.
Any help is very much appreciated. Thank you.

Resources