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)
Related
I'm using Xcode 13.4.1 (13F100) on macOS Monterey 12.5 (21G72).
One of my real test devices (iPhone) has installed iOS 16.0 (20A5328h).
I'd like to run an app from Xcode on this iPhone. Since the iPhone uses a beta version I'm not able to use this device since it's an Unavailable Device with unsupported OS version as you can see here:
This isn't the first time I have to deal with a problem like this. Till now, I always downloaded the beta Xcode version, extracted the folder from DeviceSupport and added it to my actual Xcode version. Then it worked.
I did the same this time. I downloaded the newest Xcode beta version, which also supports iOS 16. I added the folder 16.0 to /Volumes/Macintosh/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/.
The Unavailable Device message disappeared and I was able to build the app on the iPhone. I even got the Build Succeeded sign:
But then, a few seconds later, I get:
Failed to prepare device for development.
This operation can fail if the version of the OS on the device is incompatible with the installed version of Xcode. You may also need to restart your mac and device in order to correctly detect compatibility.
I already restarted both, iPhone and Mac but without success.
Why doesn't it work this time? Is there any workaround?
I had the same problem. When you enable Developer Mode on the test device (Settings --> Privacy & Security --> Developer Mode), it works.
#David did you try my solution?
I didn't find a workaround, so I simply downloaded the Xcode beta version, opened it, build the app to the iPhone and then deleted the beta version, since I only needed it for this one build.
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.
I am new to the iOS development world. I have an app in the app store and there is one issue in the app. The app was developed long ago (around 5 years ago) and some features of the app stopped running in the latest update (10.3.2). I need to fix the issue but I don't know what is the minimum Xcode and OS I have to install in my MacBook to move ahead. I expect some suggestions from you.
Firstly you've to convert that code on to the latest version of language (Swift/Objective-C). And only then you can debug/run that latest code for iOS 10.3.2 on Xcode 8.3.2
Otherwise one more option is there to debug the issues on iOS 10.3.2 with converting the code, you can make an .ipa file of the old code and install it on iOS 10.3.2 and debug the issue with the help of Device logs.
Device logs you can find in Go to Xcode > Window from menu > Devices > Choose your device and click on the "View Device Logs" button.
It would be better to use latest Xcode Version 8.3.2 and install the different iOS version simulators, which you want to test the app.
But first I would suggest you to test on device version(10.3.2).
I tried to run my iOS app on iPhone 5 using Xcode, but when I connected it, the iPhone didn't show up in the top-left selection pane. And also when I ran the app from within Xcode, the error: Xcode cannot run using the selected device error occurred.
After that, I found that my iPhone was not even found in the organizer; it was there previously. However, after upgrading my OS X to Yosemite beta and iPhone to iOS8 (officially released version of iOS 8), everything doesn't work any more...
The last time I was able to run my apps on iPhone is 5 months ago, so I'm not sure when there's something wrong occurred during the period...
I cleaned and rebuilt the app, and restarted Xcode, but nothing worked.
I also confirmed that I use Default compiler in Build Options's compiler settings.
So what am I missing?
I had same problem. Problem is that your xcode is running on v.5 and there is no option to choose iOS 8 as device system. Try to update your xcode over appstore to v.6
I tried to deploy very simple app made with Delphi XE7 on iOS simulator. Version of XCode is now 6.0.1, with Command Line tools updated as well. I tried to start this app in simulator with simulators 8.0 and 7.1. with appropriate SDK versions.
App is installed and can be seen on iOS simulator, but when I start it, after a second app closes itself without any message. in .crash file in log there is an error listed -
missing LC_DYLD_INFO load command.
Any suggestion is appreciated.
There are no issues with simulators as such.
XE7 does not work with Xcode 6 (yet) - hopefully there will be an update soon which will allow for this.
You can however install both Xcode 5 and 6 on your mac simultaneously.
To test with iOS 8 you will need to deploy directly to the device until Xcode 6 support is added.
I has upload my IOS8 app to app store today build with Delphi XE7 and Xcode 6.0.1
I compiled and remove this lines from Info.plist before I deployed the app
<key>MinimumOSVersion</key>
<string>6.0</string>
<key>DTPlatformBuild</key>
<string>12A365</string>
<key>DTXcodeBuild</key>
<string>6A317</string>
/Magnus Westlund