I'm currently developing an app for iOS using swift and I've noticed recently that after I install the app on my iPhone, it will work for some time but after a bit it just won't launch anymore and the profile under General > Profiles & Device Management > has been deleted and I have to plug my phone to my computer to re-run it.
Is there a particular reason why this would happen or is there a way around this?
Edit: I have not yet bought a developer membership, I simply wanted to know if there is a way without it.
It's because the build that you have on your phone has a limit to the amount of time that the Development profile is available on your device. It's usually up to 5 days or so, (if it's significantly shorter than that, you may have an issue) so that you can take your device home and play with it if need be and return to the office and fix any issues you find.
I'm not actually sure that there is any way to lengthen this development build time but yes that's why it won't reopen and why you'd have to re-install your application to a device to continue to test. I think it has something to do with the Apple Developers Provisioning Profiles.
Could it be because you have not bought a developer program membership? I'm pretty sure that when you install an app to your phone using the free trial membership, you get this time limit on your wildcard profile.
The "way around it" is to attach the phone to the computer and build and run on the device again.
Related
I develop an enterprise app that I have installed onto a group of iOS 9.1 and 9.2 iPads.
I have trusted the profile after app installation (e.g. following the steps in this question: iOS9 Untrusted Enterprise Developer with no option to trust) and the app was working fine.
After a few days / weeks, the "Untrusted Enterprise Developer" pop up starts to appear again when the app is launched, and in Settings->General->Device Management the app shows as 'Not Verified'
Has anyone else experienced this / is there a way around it?
I'm not currently sure if there is specific steps that cause it (e.g. a specific amount of time has passed / the unit has been plugged into a Mac / etc). I'm trying to work that out at the moment.
EDIT: I've made some edits to the original question. I have now realised that the app is still trusted, but is no longer verified (I didn't realise before that there was a difference between the two).
The following screenshot is from the Device Management section on the iPad. This is taken several days after the app has been Trusted and Verified; and was working without issue.
I have raised a bug report with Apple, but have not heard back yet.
We have the same issue with several thousand iOS 9.2 iPads that have enterprise apps installed but don't have continuous internet connectivity due to spending their lives on isolated networks or in flight mode.
Our testing suggests that despite the Apple documentation at https://support.apple.com/en-gb/HT204460 saying clearly that "This developer remains trusted until you use the Delete App button to remove all apps from the developer.", this is in fact not the whole picture.
It seems the validity of the signing credentials is periodically re-validated (presumably to check for revocation) and if that re-validation fails for any reason or can't be completed, the developer reverts to its un-trusted state and the app will not launch.
Replication is tricky as it's not quite as simple as rolling the date forward more than a month but repetition of that twinned with continuous usage and relaunching the app exposes the problem. We haven't yet found a mechanism to force this re-validation on demand. Both iTunes and MDM installed .ipa files display this behavior. The manual trust within the UI and the implicit trust given by pre-installed certificates seemingly work the same way behind the scenes.
We're about to start testing the behavior on the new betas but that conversation can't be continued here.
We are experiencing exactly the same problem....very frustrating indeed.
I work for a company with 10,000 + iPads deployed through a popular MDM platform, since roughly November 2015 an increasing number of our iPads have been displaying this message when a user attempts to open any of our internal apps. We advise a workaround, which works for roughly 24 hours. After this time, the message reappears.
Our iPads are connected to our own secure corp wifi, this network is unable to communicate with apple due to apple.com being block on our firewall. Pre November, when an untrusted developer message appeared, we would advise the user to connect the iPad with an open network, close the app and re-open. The app would open and the message would not longer appear.
I have since discovered, the iPad needed to communicate with a specific apple url to authenticate or renew the developer operational certificate, this url is ppq.apple.com. Currently this url is down which means the server that authenticates certificates is offline, hence the repeat occurence of the untrusted developer message.
I've been experiencing, of late, a weird problem with every App I create. When I deploy it to a device, I notice that it takes a long time to launch. Whether I'm debugging via Xcode or just launching it anywhere, anytime. When I tap the App icon, it takes about 4 seconds before the actual App launches. During that time, the device is pretty much frozen until the App launches.
However, I have an App that's been distributed through the App Store and it doesn't seem to have this problem. It launches immediately. But when I provision my phone via Xcode (the same App that's on the App Store), I experience this problem.
My question is, is there some sort of debug info that's built into the App binary that causes these long delays during launch that's not built into release versions? If so, is there a way to disable it on debug builds?
I believe it's bug on xcode 6 I've experienced the same issues. I've figured out a way to launch my apps quicker.
Set Xcode to build into a fixed DerivedData location—otherwise every time you blow away DerivedData, you’ll have to repeat all these step. Go to XCODE
Settings > Derived Data > Advance > Select "Unique"
Make a new script. Say: quick_compile.sh. Give it the standard “#!/bin/bash” or whatever at the top and chmod +x it. 3. Do a clean build of your project. 4. Go to the Xcode Report navigator (Cmd-8), and choose the report for your recent build. 5. Type “merge” into the upper-right hand filter, expand the log for the “Merge Khan_Academy.swiftmodule” phase, and copy the contents minus the first line into your script.
Do the same for “i386.swiftmodule”. 3. Do the same for “link”. 4. Do the same for the file you’re iterating on (e.g. ContentItemView.swift); put this at the top of your script
Once you’ve got this set up for a file, just run your script to update the build for that new file. 2. Launch the app with Cmd+Ctrl+R in Xcode.
You’ll have to repeat these steps whenever new files are added to the project or to change the file you’re iterating on, unfortunately, but it’s good when you’re working on something focused
I Learned this efficient method from #andy_matuschak twitter he made
a post a while ago on how to do this so i don't take any credit for
it. I believe he released a PDF explaining it better. If you can't follow these instructions look for the pdf file
I was seeing the same problem #purrrminator was. I have an iOS 8.3 device used for testing here at a large company with a good number of provisions that ultimately found their way on to this thing. I app I'm testing now was taking many seconds to launch.
Based on:
https://apple.stackexchange.com/questions/148792/installed-provision-profiles-not-seen-on-ios8
What I did was set the time manually to a date well into the future allowing the existing provisions to expire and get auto-pruned. A quick reboot (for good measure) and a fresh install of the app and I was good to go (a reset was not an option for me).
Try to reset phone settings (not content!). It may solve some performance problems occasionally.
The only reason that I've experienced the same problem was in fact that I got tons of provision profiles installed on the device. Our development team has over 100 apps, so iOS has to deal with all the provision profiles mess while launching the app.
OK, basically this is what I need (and I'm by no means an expert in iOS-related stuff, so... apologies if that sounds too naive...) :
I'm developping a test app for iPad
My iOS developer account has expired (so, I can't create certificates/provisioning profiles and all that) and I'm not planning to renew it any time soon
I want to take my compiled .ipa and install it on my Jailbroken iPad (running iOS 7)
Is there any reasonable way to do that? Have you tried that?
Any suggestions are more than welcome!
This is very easy,
Step 1. Launch Cydia, search for AppSync Unified
Step 2. Install it. (now iTunes will let you sync any IPA to your phone)
(if search result doesn't show AppSync Unified do the following)
Tap on the "Manage" button.
Now tap on "Sources" button.
Touch the Edit button and then tap on Add.
Now app this repo –> https://cydia.angelxwind.net/
Once the repo is added, tap Return to Cydia.
Tap on the newly added repo.
Search for AppSync Unified and simply touch it, then select "Install" to start the installation process.
Step 3.
Now sync your IPA to your phone using iTunes, Cydia Impactor or by opening the IPA using Filza.
I haven't had a jailbroken iPhone for a long time, so I am not sure if it's going to work or not, but I know that a jailbreak tweak called AppSync once existed that made this possible. You could try searching for it on Cydia.
Good luck!
first of all, I know there are many questions similar to this one, but, they are old and the answers in them unfortunately no longer work, since the game has changed without Hacklo.us to do part of the process.
Basically, I want to develop for iOS and test the apps I make, and later in the future I may want to submit them to the Apple Store, but for now I'm not willing to pay 99$ to join the Apple iOS developer program just to use my apps in my iPhone.
I have a jailbroken iPhone 4S with iOS 6.1.
The only posts I found about how to do this, either use Hackulo.us (that went down about 2 months ago) or something called Jailcoder that is also offline and they also seem to work with only old versions of XCode/iOS (not clear about that point).
Any new progresses on how to to this with the present conditions?
Simple. After building the app, just use some utility (SSH, iExplorer, etc.) to copy the app bundle to the /Applications directory on the device. After that, either run the uicache tool or respring the iPhone to make the application appear on the home screen.
Hello all!
I want to test how my Cordova-ported apps run on real device, and if I like performance, I'll buy Apple Developer Certificate. But now I dont want to waste hundred bucks just to see my webapps running slow and ugly as shit. I've looked through all that forums and also here on stackoverflow, and all solutions seem to relate to iOS SDK 4.2 and earlier.
And what about Xcode 4.3+?
I've edited /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/SDKSettings.plist and also turned out code signing in project settings.
I've got two MyProject.app's from "Build for Running" and "Build for Archiving" and tried to sync them to my iPod touch 4 via iTunes, but in both cases app crashes immediately after launch.
I also extracted .ipa from iTunes and tried to install it via Installous, but got the same problem. Thing crashes.
I also got .xcarchive via Product->Archive but don't know what is to be done next with it..
So, question is here: how can I deploy my own app to my own jailbroken iPod touch?
Thank you.
I would suggest you to take a look at JailCoder.
It allows you to Debug your app made with XCode on a real device without a developer account.
Please keep in mind such solution should only be temporary. If it runs well and you want to do further developing / deployment consider buying a Developer account.
On jailbroken iDevices, Cydia (and other dpkg installers) install apps to /private/Applications/
So why not try:
/Applications/MyProject.app
Then open a terminal on the device and navigate to /Applications:
chmod -777 MyProject.app
chown root MyProject.app