I can no longer test run my app on iOS devices - ios

I've been working on my app for a while and recently I haven't been able to run the app on iOS devices. I keep getting an error saying "App installation failed: Could not inspect the application package"
I looked up this error and tried doing what others did to resolve it, but nothing worked for me. A lot of answers said that there couldn't be non latin characters in the title, that doesn't effect me. I tried 'cleaning' the project multiple times. I deleted the derived data but that didn't help either. How do I fix this issue so I can continue to test on iOS devices.
I don't know what data share here to help resolve the issue.... soooo if you need anything just ask.
I've already tried XCode > Preferences > Accounts, removing all apple ids and re-logging in.

Related

"This app could not be installed at this time." I get it only after I try to run the app 2nd+ time

I was working on developing one iOS app that I got from another developer, I suddenly got this issue since yesterday:
The thing is if I deleted the app, or if I changed bundleid, app name or something on info.plist file, it can run again, but if I want to run it without changing something in the info.plist file, it will give me this error above.
I have checked, tried and applied all these options on these threads that talking about the same issue, and none of them has solved it for me:
XCode "This app could not be installed at this time."
This app could not be installed at this time.Xcode 9.2
Why Xcode shows "This app could not be installed at this time." pop-up?
Xcode: "This app could not be installed at this time."
And this is what I always get in the CoreSimulator.log when I face the issue:
Failed to load Info.plist from bundle at path /Users/x/Library/Developer/CoreSimulator/Devices/DEVICE-ID/data/Library/Caches/com.apple.mobile.installd.staging/temp.2ExFHh/extracted/Payload/appname.app
I went to /Users/x/Library/Developer/CoreSimulator/Devices/DEVICE-ID/data/Library/Caches/com.apple.mobile.installd.staging but it's an empty folder.
Then, I deleted the app from the simulator, run it then it worked just like I explained above, checked the folder, and still empty..
I checked like 10+ diff threads about same issue on Google, most developers that faced the issue fixed it with the solutions in those threads above on Stackoverflow.
But no one has talked like what's happening in my situation :/
It's weird that app works for first run, and when you re-run it, it says "This app could not be installed at this time."
Looking for your help guys, I don't wanna end up making a new project and after few weeks face the same issue and stack with it forever.
TIA :)

unable to verify mobile app on IOS9 using Xcode 7

I have been trying to take advantage of Xcode now allowing developers to test on devices without being enrolled on the developer program.
This was working just a few weeks ago, no problems at all
however, for no apparent reason, I am getting this error message whenever i try to run my app on the iPhone:
after some googling a website led me to this page in the settings app:
From what i can gather on google, The problem is that the app isn't verified. However when i click verify nothing changes. The text at the top of the screen changes very briefly (i assume it's saying loading)
I have tried deleting the provisioning profile, that Xcode had created, and clicking fix when Xcode tells me it can't find the profile. Nothing changed
so my question is: does anybody know what the problem is here and how to fix it?
I've never seen a problem with that before but with x-code there are usually 3 really annoying but normally foolproof steps to solving a problem such as this.
1) Update your IOS and make sure you are on the most recent version
2) Reinstall X-code
3) Recreate the app
Like I said those 3 steps can normally solve any non code related problem.
Hope that helps!

Xcode does not run the app on simulator. (App exited unexpectedly)

I'm developing for iPad (iOS 7), using Xcode 5.0.2.
Yesterday morning I was playing around with the app (my first app) and every time I ran it, it was displayed in the emulator perfectly. But after some 5/6 runs Xcode just stopped launching my app in the simulator. I started to receive this message:
MagazineManager exited unexpectedly - lost connection
Image:
I've been researching since yesterday morning for a solution with no luck. I even uninstalled and reinstalled Xcode, cleared the cache, delete folders... all that drama thinking it could be some sort of cache problem.
Then, going online I've tried lots of "solutions", none worked.
I've tried all listed here: Xcode suddenly stopped running project on hardware: "Could not launch xxx.app: .. No such file.."
and here:https://discussions.apple.com/message/23431537#23431537
and in more places.
After all my "try this, try that" I'm stuck with the same problem. I can only see a black screen at the simulator (image below) and that message at Xcode!
In my extensive research I've read that people are still able to debug using their iPad's. The problem is that I got the new iPad air, that's only getting here dec, 20th!! So I don't have a place to test my app[s].
Thanks!
UPDATE
Just got this message in the debugger console:
013-12-09 20:23:25.902 sim[607:303] /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/bin/sim: Did not find an executable file at the path: '/Users//Library/Developer/Xcode/DerivedData/MagMan-bvhhiijesvrvuteunbmpsxcqgsst/Build/Products/Debug-iphonesimulator/MagMan.app'
My problem was the debugger. Actually, it still is.
The way I solved, and have been doing for every new project, was to disable the debugger and then run the project. That way I'm able to use the app on the simulator but without the debugging functionality.
I don't know what the problem is, what is causing this debugger issue in my case, but for now that's the best I could come up with. Thanks to the friends that replied to my question and helped my research I was able to test it and disable it.
This is how I disabled the debugger:
Project > Edit scheme
Set Debugger to None
If anyone knows a solution for this, feel free to answer this question and I'll make sure to update the selected answer accordingly.
Again, thanks for all your time and patience, specially #Popeye and #HotLicks that spent a lot of their time trying to help me.
Sometimes the simulator can be a bit flaky and just needs resetting. In the navigation bar at the top of the screen when the simulator is visible try:
iOS Simulator --> Reset Content and Settings...
This should reset all the settings and remove the content so all data, images, apps etc will be removed, its like it has never run before.
UPDATE
The answer on XCode5 can't install app on iOS simulator indicates the following
I found a "Fix" for this. After trying everything and getting the same error on "My App", I opened and tried to run "My App 2". "My App 2" ran fine, so I went back to "My App", tried again and this time everything worked fine. Crazy
If that doesn't work leave a comment and I will have another look.
Delete the app and restart your iPad it will work

Xcode 4.4 No such file found launching executable

Before anyone just assumes what I am saying here, please read what I have to say.
I have read the hundreds of posts on this topic and have tried pretty much all the suggested resolutions, in no particular order:
Quitting Xcode
Deleting the derived data folder
Cleaning the project
Hard resetting iPhone
Resetting Mac
Tried a second iPhone
Different USB port
All these in 'special' order
Checked code signing attributes
"Validate Settings" returns no problems
Validation returns no problems
I am stumped when it comes to this. The only thing I can think of is actually resetting my phone, but don't see how this could help when it doesn't work on the second phone either.
Are there any other suggestions, tips, ideas on what could be causing this rather annoying bug?
UPDATE: The exact error:
Error launching remote program: No such file or directory (/Users/Username/Library/Developer/Xcode/DerivedData/ProjectName-dnfacjtdklqktcazrpfyupofdryp/Build/Products/Debug-iphoneos/ProjectName.app/ProjectName).
To get the error, I do any combination of the listed steps above, then click Run on "My Device" (an iPhone 4). Application never installs to the phone and Xcode reports the application has finished running then shows the above error.
My problem was cause by me accidently changing the "Deployment Target" (ios version) to a version higher than what was on the phone I tried to run the code on.
Change the deployment target to below or equal to the ios software version on your phone.
(this answer wasn't on your list) :)

Packaging operation failed

Im trying to update my app on appstore, and keep getting the "Packaging operation failed"
Im pretty sure that the name, bundle identifier, relase provisioning,version name etc. is the same as the old app, already checked many posts here and the web but doesnt work as well....
Any sugestions please?
working on Xcode 4.3
EDIT:
I think theres something wrong, when i archieve i see in the organizer :"Estimated app store size: 7 kb" 7 kb?
EDIT 2 :
I was using the library ShareKIT for integration with social networks, facebook, delicious etc., Usually worked with IOS Simulator, or on my own device. The accused does not log anything wrong, but after much trial and error, delete the library and tried again, i worked normally. Here was the solution I found.
To see "log information", in Xcode, use View->Navigators->Show-Log-Navigator

Resources