I am developing an app with ReactNative and I am using Xcode to simulate. Recently I cannot start the simulator, and the terminal gives me following error message:
Failed to load optimized model at path '/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Frameworks/InstrumentsPackaging.framework/Versions/A/Resources/XRPackageModel.momd/XRPackageModel 9.0.omo'
Also the Xcode simulator says: "Unable to boot the simulator".
I have restarted the computer, installed node, xcode and all necessary components but it does not work.. I have Xcode version 9.2 and node v.8.11.0. Does anyone know how to fix this problem??
Related
I have recently upgraded the Mac OS to Ventura 13.2.1 and Xcode to 14.2, now once I try to compile any application with Xcode, I am getting Kill:9 related issue for random task/framework in the project. I also get Kill:9 issue sometime on terminal as well.
Listing the errors here:
failed to read asset tags: The command `` terminated with uncaught signal 9. The command had no output.
Driver threw jobFailedWithNonzeroExitCode(9, "") without emitting errors.
Unable to execute command: Killed 9 Clang frontend command failed due to signal.
Please help me to resolve this issue/crash.
Open project in Xcode.
Build the app with Simulator (I tried with iPhone 14 Pro)
Error occurs in the build
Ideally project should have compiled without any error.
It sounds to me that the problem is with the installation of Xcode because when an unprivileged task is attempted, the OS will kill it off (with signal 9).
What I recommend is for you to re-install Xcode.
When you first run the new Xcode, it should prompt you for an administrator password in order to install system related components. Make sure you do this step. Hopefully that should then allow you to compile and run your iOS apps.
I am trying to run my app on a physical device. The applicaiton builds but it doesnt deploy my app to the device.
I get this following error:
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.
Details:
I have xcode version 13.2.1
device is iphone 11 pro max with ios version 15.6 installed.
I tried to upgrade my xcode to 13.4.1 but on app store there is no button that indicates that i can upgrade.
Things I have tried:
restarting mac
restarting iphone device
closing and reopening xcode
cleaning project and rebuilding.
Any help will be appreciated.
Download xCode 13.4.1 directly using the link
https://download.developer.apple.com/Developer_Tools/Xcode_13.4.1/Xcode_13.4.1.xip
Appium Version v1.18.0
Xcode Version. 9.4
used Appium Inspector for Automation Testing on iOS with capabilities
enter image description here
when Hitting on start session below error is occurred
Error
An unknown server-side error occurred while processing the command. Original error: Simulator architecture is unsupported by the '/Applications/###.app' application. Make sure the correct deployment target has been selected for its compilation in Xcode
Pay attention to the error message, it gives the answer:
Simulator architecture is unsupported by the '/Applications/###.app' application. Make sure the correct deployment target has been selected for its compilation in Xcode
You stated to have XCode 9.4 preinstalled and in Appium-Desktop you try to create sesion running imulator with iOS 11.4. It is simply not available in old XCode version you got.
You need to update your XCode and related tools to 11.x in order to run session with iOS 11.x simulator
I've installed Xcode 10 and upgraded my iOS application to Swift 4.2. When I run my tests (both UI and Unit) via Xcode, on an iPhone simulator running iOS 12, the tests successfully start. When I attempt to run the tests on a simulator running a prior iOS version (e.g. iOS 10.3.1), I get a "failure to load the test bundle". These tests were running successfully on Xcode 9.4. I can run my app on this older simulator without an issue.
The Xcode output is as follows ("Reading List" is the application name):
2018-09-16 15:11:36.667 ReadingList[11401:11478426] Failed to load test bundle from file:///Users/andrewbennet/Library/Developer/Xcode/DerivedData/ReadingList-edsxqugqvkymbgfrbivbjmzebuya/Build/Products/Debug-iphonesimulator/ReadingList.app/PlugIns/ReadingList_UnitTests.xctest/: Error Domain=NSCocoaErrorDomain Code=3587 "dlopen_preflight(/Users/andrewbennet/Library/Developer/Xcode/DerivedData/ReadingList-edsxqugqvkymbgfrbivbjmzebuya/Build/Products/Debug-iphonesimulator/ReadingList.app/PlugIns/ReadingList_UnitTests.xctest/ReadingList_UnitTests): no suitable image found. Did find:
/Users/andrewbennet/Library/Developer/Xcode/DerivedData/ReadingList-edsxqugqvkymbgfrbivbjmzebuya/Build/Products/Debug-iphonesimulator/ReadingList.app/PlugIns/ReadingList_UnitTests.xctest/ReadingList_UnitTests: mach-o, but not built for iOS simulator" UserInfo={NSLocalizedFailureReason=The bundle is damaged or missing necessary resources., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Users/andrewbennet/Library/Developer/Xcode/DerivedData/ReadingList-edsxqugqvkymbgfrbivbjmzebuya/Build/Products/Debug-iphonesimulator/ReadingList.app/PlugIns/ReadingList_UnitTests.xctest/ReadingList_UnitTests, NSDebugDescription=dlopen_preflight(/Users/andrewbennet/Library/Developer/Xcode/DerivedData/ReadingList-edsxqugqvkymbgfrbivbjmzebuya/Build/Products/Debug-iphonesimulator/ReadingList.app/PlugIns/ReadingList_UnitTests.xctest/ReadingList_UnitTests): no suitable image found. Did find:
/Users/andrewbennet/Library/Developer/Xcode/DerivedData/ReadingList-edsxqugqvkymbgfrbivbjmzebuya/Build/Products/Debug-iphonesimulator/ReadingList.app/PlugIns/ReadingList_UnitTests.xctest/ReadingList_UnitTests: mach-o, but not built for iOS simulator, NSBundlePath=/Users/andrewbennet/Library/Developer/Xcode/DerivedData/ReadingList-edsxqugqvkymbgfrbivbjmzebuya/Build/Products/Debug-iphonesimulator/ReadingList.app/PlugIns/ReadingList_UnitTests.xctest, NSLocalizedDescription=The bundle “ReadingList_UnitTests” couldn’t be loaded because it is damaged or missing necessary resources.}
The line mach-o, but not built for iOS simulator seems like it could be key. How can I resolve this?
The test targets had the iOS Deployment Target setting left as the default value.
In Xcode 9.4, this is equal to "iOS 11.4", yet the tests can still be run on an "iPhone 7 (10.3)" simulator for some reason. In Xcode 10, there seems to be a change in behaviour since the tests no longer run on simulators running iOS versions prior to the default "iOS 12".
In the Project Navigator, select the project file.
Select the Target in the Project configuration window.
Select Build Settings tab, (Basic and Levels)
Scroll down to iOS Deployment Target and then select the desired OS version.
That solved the problem for me.
cheers
rgds Dave
My UITests were running fine till xcode 8.3 (iOS 10). After updating xcode and upgrading to swift 4 Test Fails with following error
crashed in external symbol
iOSSimulator: Unable to connect to
"com.apple.instruments.deviceservice.lockdown" (Error
Domain=DTiPhoneSimulatorErrorDomain Code=-1 "DTServiceHubClient failed
to bless service hub for simulator iPhone 7 Plus
(F8CB0FF4-5A28-4149-841F-70162DFB6228)"
UserInfo={NSLocalizedDescription=DTServiceHubClient failed to bless
service hub for simulator iPhone 7 Plus
(F8CB0FF4-5A28-4149-841F-70162DFB6228),
NSUnderlyingError=0x7f92283856d0 {Error
Domain=DTiPhoneSimulatorErrorDomain Code=-1
"blessSimulatorServiceHub:error: failed but didn't provide an error"
UserInfo={NSLocalizedDescription=blessSimulatorServiceHub:error:
failed but didn't provide an error}}})
Simulator boots, app installs and then simulator crashes right there.
Down grading the swift file to 3.2 and making necessary downgrade changes and running on xcode 8.3 Tests runs like charm.
I tested it on different Mac. Same error occurs.
I can't really guess whats messing up on xcode 9
This seems to be Xcode Bug. After updating to Xcode 9.1 this error vanished.