Xcode 8 won't run my application - ios

I'm trying to run a sample app; its source can be found here: https://github.com/bandwidthcom/catapult-reference-app-voice-ios
In commit c669271, before the app was migrated to Xcode 8 and Swift 3, I was able to run it in devices from Xcode 7 - the Simulator wasn't working since one of its dependencies wasn't built for x86_64.
But since it was updated, when I try to run the application on a Simulator from Xcode 8, I get the following error:
The operation couldn’t be completed. (Mach error -308 - (ipc/mig) server died)
There's a similar error when running on a device, but since I don't have one with me right now, I'll edit this question with further details tomorrow.
I saw it working thrice. The only thing that comes to mind is that I had a clean install of Xcode each time it worked. After something like a reboot, or just a restart of Xcode, I wasn't able to run it anymore.
I don't have a firewall enabled, so the accepted answer to this question (Swift Playground and Simulator Error (ipc/mig) server died, Unable to boot the iOS Simulator) doesn't solve my problem.
Any ideas?
OBS: You have to edit the Config.swift file to be able to build the project: any value in the place of "<replace me>" will suffice.

It seems the problem was related to a framework that was being embedded in the application via symlink.
I changed one of the build scripts to copy the framework and now everything is working as expected.
Not sure why it worked before, but that seems to be the answer!

Related

Upgraded to XCode 9.1, Command /bin/sh failed with exit code 1 error

I have an existing app, and upgraded the OS on my mac High Sierra and also Xcode from 8 to 9.1. Since then, when I try to build, I am getting an error with some shell script failing. The strangest thing is that this happens only when I try to build using my iPad device. No problems iPhone device or simulator, and no problem with iPad simulators. I tried updating all the pod files, clearing Derived Data and similar things. Below is the screenshot with all the error info. I am a newbie to iOS programming, and any help is very much appreciated. Thank you all in advance.
This is a typical signing issue. Try delete Keychain certificates pertaining your project and rebuild using fresh ones off developer.apple.com.

App installation failed during run App in xcode 8

I upgrade my xcode after update in xcode_8 I have faced many issues like app not running in simulator as well as some time not run in device .It gives me an error App installation failed.An unknown error has occoured. Out of five three time run on device and 2 time not run and provisioning profile is correct because app run in device.
In simulator it gives an exception of slidemenu franework.
Code totally update with xcode_8 and swift 2.3.
Tried everything, described above, the only thing that fixed this was to restart my Mac, it then started working again.
Clean the derived data, then run again.

Failed to launch IBCocoaTouchImageCatalogTool via CoreSimulator spawn

I have an Xcode project which was downloaded from the internet so I don't know which Xcode version was used to write it but the language is Swift 2. I opened it in Xcode 7.1 beta 1 and I get the following compile time error.
Failed to launch IBCocoaTouchImageCatalogTool via CoreSimulator spawn
I deleted the DerviedData foler, cleaned and build the project several times. Tried converting the project to latest Swift syntax but it says there's nothing to convert.
I'm all outta ideas. Suggestions?
The same happened to me and it was solved by cleaning the project. However, if you cleaned it —as you say you did—, I would try closing and reopening Xcode. Even though it seems stupid, it works more often than not.
So After Trying a bit i removed the XCassets file form the Copy Bundle Resources, build once without it and then added it again. Solved it for me.
I had the same issue. My solution was to do the following
Clean the Project
Quit Xcode
Reopen Xcode
Build
That got it working for some reason...
The above answers are correct.
I have a bit similar approach.
After, I use these steps:
Clean the project.
Remove your Assets from your project(Remove References). Run the project without assets. Now the project will show some compile errors, these are not very tricky.
Run the project, this time project run without your assets and may be chances of crash. This ensures that project will run.
Now clean the project and add the assets, now run the project. The project runs successfully.
For me it works. I hope it will be helpful to you.
The only correct solution for me that takes only a moment to perform is to delete ~/Library/Developer/CoreSimulator and all of its contents. Immediately after this the build completes successfully.
I believe the solutions that state to reinstall Xcode, ultimately refresh the CoreSimulator folder, that's why they are successful in resolving the issue.
I started experiencing the error after having upgraded to MacOS Big Sur, while using Xcode 11.6 and Xcode 11.7.
Possible solution for those struggling with the above answers.
If you've just restored your machine from a time machine backup (migrating from old to new machine), you may want to re-install Xcode.
It doesn't appear to bring the caches or other important settings across properly from the time machine restore.
I've just taken that; what appears to be a drastic step, but it's worked!
Instructions on how to do so: Completely reinstall Xcode 9
-W
I was also facing the same issue tried cleaning and restarting XCODE didn't worked for me,
so I removed xcassets and added the image sets again one by one, and that worked for me.
Had to add a step Airman00's answer.
List item
Clean the Project
Quit Xcode
Delete derived data
Reopen Xcode Build
That got it working for some reason...
Update to XCode 7.1.1 from 7.1 solved my problem.
With XCode 7.1 I used Airman00's solution but suddenly it stop working.
Hope it helps!
If you have this type of error in your project then follow these steps:
Clean the project
And go to storyboard and select any viewController
And Run the project again
This will successfully resolve the error.
Maybe you have just cleaned Logs directory...Then you can try this:
sudo chmod 777 /Users/[YourUserName]/Library/Logs
I had to restart my machine to get this to work. Just in case, here are the exact steps I did:
Clean project
Quick Xcode
Delete Derived Data
Restart machine
Reopen
I had the same problem recently with Xcode 11.4 on Catalina 10.15.4.
Rebooting, cleaning project folders, or deleting the derived data directory did not help. What solved the problem for me was to remove and reinstall Xcode (I use the AppStore version).
It is possible, that I caused the problem myself by reinstalling macOS 10.15.4 via a Combo-Update.
I tried everything . But nothing worked . So i reinstalled Xcode . I took some time . But worked
Xcode 14 beta solution
If you are finding your production Xcode 13 builds aren't working and you have Xcode beta 14 installed you can try this:
Launch Xcode 14 beta 3
Open the Platforms preference pane
Xcode 13 should now work as expected
Source: https://twitter.com/AnaCalinov/status/1545118596820439040

App installation failed. This operation is unsupported

I've been updating an app that works perfectly in iOS7 to be compatible with the new iOS8. I can't deploy the app to an iPhone with the last GM iOS8 version. The compilation process give me no errors, but Xcode give me the following alert:
App installation failed. This operation is unsupported.
Can someone help me?
Thanks
I had the same problem too. The environment I used is Xcode6 and try to run my app on iOS8 devices.
My solution is
first change Deployment Location as NO in your Build Settings.
Close Xcode
Remove all intermediate build files located in the corresponding subfolders (has your app prefix) under Xcode Derived Data folder (~/Library/Developer/Xcode/DerivedData/).
Restart your Xcode, build, and then run app on your devices.
Had the same problem.
This is a compatibility problem between Xcode 6 and your app configuration.
1) Download Xcode 5 and try to run your app on your ios8 device, it should work
2) Try to recreate your app configuration from scratch to ensure compatibility with Xcode 6

Cydia app installation problems

I have been hosting my app on a cydia repository for quite some time, and haven't had any problems hosting the app for iOS 5 or iOS 6. However, when I upgraded one of my devices to iOS 7, and tried to install the app it gave me some errors during the installation.
The erros I am getting are,
subprocess dpkg-deb --fsys-tarfile returned error exit status 2
Sub-process /usr/bin/dpkg returned an error code (1)
I've tried googling the errors, but haven't had much luck, and I just reread saurik's post about building a .deb file and creating a cydia repository, here I am still not sure why the package / .deb file would work in iOS 6 but then stop working in iOS 7.
I even created a simple test app with just button in it using Xcode 5, and that simple test app is giving me the same errors as stated above.
Apparently there's some compatibility issues with dpkg, Cydia, and the homebrew release of dpkg. I ended up finding this, which solved the install problem. :)
this error mostly happen if you are using new SDK that has not been jailbroken yet, if you are using Xcode with new SDK you should download older Xcode with SDK that has been jailbroken, then you can compile an app that will load normally.

Resources