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
I am getting the following error when I run my code in vs code. I am getting the same error if I use an android simulator.
Failed to launch iOS Simulator: Error: Emulator didn't connect within
60 seconds
The output of flutter doctor should tell you what could be wrong. Most probably, you're using an outdated version of Xcode. Also, the output of flutter doctor should include the currently supported Xcode version.
I would like to ask how to compile my Flutter app for real devices or the simulator. Before these problems occurred, I could compile the Flutter app for iOS, but after the updates of Xcode + Flutter + AS, suddenly it can no longer run any Flutter apps.
Xcode itself can run the apps without any problems, but when I execute the command flutter run I get the following error:
Running Xcode build...
└─Compiling, linking and signing... 9.4s
Xcode build done. 36.5s
Failed to build iOS app
Error output from Xcode build:
↳
2020-12-17 11:10:56.911 xcodebuild[21278:254935] [MT] iPhoneConnect:
📱<DVTiOSDevice (0x7fbfceca2180), xxx’s iPhone, iPhone, 13.5.1 (17F80),
00008020-000928A82293802E> == Underlying device preparation errors ==
2020-12-17 11:10:56.912 xcodebuild[21278:254935] [MT] iPhoneConnect: Failed
_shouldMakeReadyForDevelopment check even though device is not locked by
passcode.
Domain: com.apple.platform.iphoneos
Code: 5
Failure Reason: allowsSecureServices: 1. isConnected: 0. Platform:
<DVTPlatform:0x7fbfcb11ed40:'com.apple.platform.iphoneos':<DVTFilePath:0x7fb
fcb11eac0:'/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneO
S.platform'>>. DTDKDeviceIdentifierIsIDID: 0
User Info: {
DVTDeviceDescription = "\Ud83d\Udcf1<DVTiOSDevice (0x7fbfceca2180),
xxx\U2019s iPhone, iPhone, 13.5.1 (17F80),
00008020-000928A82293802E>";
}
--
2020-12-17 11:10:56.912 xcodebuild[21278:254935] [MT] iPhoneConnect:
📱<DVTiOSDevice (0x7fbfceca2180), xxx iPhone, iPhone, 13.5.1 (17F80),
00008020-000928A82293802E> == END: Underlying device preparation errors ==
** BUILD FAILED **
.........
Could not build the application for the simulator.
Error launching application on iPhone 11 Pro.
This is the error I got from running (Flavor / newly created project). Currently, I can't run any flavor using Xcode, I can only run non-flavor projects from Xcode.
So far, I have tried:
https://github.com/flutter/flutter/issues/20685#issuecomment-421511890
Android Studio cannot run the Xcode Simulator
flutter clean && flutter run
Logging out of Xcode
Closing and reopening Xcode
Killing Xcode in the terminal.
If you have any ideas please let me know. I really am stuck with this kind of error using emulator or real device, thx!
Ok, I got fixed my issue after I tried to uninstall the second XCode, so this problems occurred because when previously I tried using my MAC I install the XCode beta version, then tried to publish my apps into playstore, because of XCode version I downloaded from AppsStore another XCode version, this somehow make clash for android studio to detect and occured this kind of error, hope this help when someone has this kind of issue
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??
I have a problems when I want to run my application on my iPhone in Xcode 9 and using Swift lang.
When I run this application in simulator everything is all right, but when I connect my iPhone (by cable or wireless) to my MBP I have an error:
Swift stdlib tool Error: Task failed with exit 1 signal 0
and application stopped.
Why I have this error message and how can I test my app on my devices?
Thanks for all answers.
P.S.: Xcode 9.2 (9C40b) iOS 11.2 (Deployment target)
If removing DerivedData don't help try to just reboot phone or mac.
It mainly works for me with that error