I have updated my phone's OS version to iOS 14 and spent today updating Xcode to version 12, yet when I try to build my Flutter app on my iPhone 11 - iOS 14 through Android Studio, it gives me this error:
Your Xcode version may be too old for your iOS version.
═══════════════════════════════════════════════════════════════════════════════════
2020-09-18 19:14:26.576 ios-deploy[30916:201883] [ !! ] Error 0xe8000022: The service is invalid. AMDeviceSecureStartService(device, CFSTR("com.apple.debugserver"), NULL, &con)
Could not run build/ios/iphoneos/Runner.app on 00008030-00012C200C45802E.
Try launching Xcode and selecting "Product > Run" to fix the problem:
open ios/Runner.xcworkspace
Error launching application on Azheen’s.
This problem is somewhat confusing, I got the same error with Xcode 12.0.1 and iOS 14.2 beta.
This solved for me
Download Device support files of iOS 14.0 from this link.
for iOS 14.2 beta there is a pull request that is not yet merged
Unzip and Paste it in this location. /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
ReOpen Xcode.
This is what I did:
Updated Xcode
flutter clean on the terminal.
flutter upgrade on the terminal.
Open Xcode and run the application once.
flutter clean again.
flutter run.
It should work now.
This issued was raised a while back in August in the flutter repo. Currently, the issue has been fixed by the recent flutter update.
Run flutter upgrade to v1.20.4 to get the fix
I ran into this problem recently, most likely it can be caused due to the reason, that your iOS Device is running a higher version than you xcode can support.
Example:
Apple release new iOS for iPhone i.e. 14.2 and you upgrade your device right away, than you ran into this issue, because the xcode may not have the latest version of your device support files, meaning xcode can only suuport iOS 14.1 or lower. Apple sometimes release newer iOS without providing update of xcode device support files.
There is 4 solutions for this:
Keep your iOS Device on the current stable version of xcode
Downgrade your current iOS device
Install device support files manually
Install xcode beta from Apple Developer https://developer.apple.com/download/
It is an annoying issue, Apple should not release any iOS without having the supporting tools released at the same time, or they should run a warning.
Ran into this issue today on Visual Studio. It appeared that my Dart SDK version was too out of date and upgrading it appeared to fix the problem.
I did upgrade my Flutter version first, and then ran into a problem with the vsync property of AnimationController not being recognized, which was solved by upgrading the Dart SDK, so I'm not sure who the real culprit was (or if it was a combination of both).
Instructions on upgrading your Dart SDK: https://dart.dev/get-dart
Related
I'm having an issue running iOS simulator from Expo. I'm seeing these two errors:
Trying to open the project in iOS simulator...
Opening iOS simulator
iOS Simulator device failed to boot. Try opening Simulator first, then running your app.
Error installing or running app. Error: Timed out waiting for iOS Simulator device to boot.
Trying to open the project in iOS simulator...
Booting device in iOS simulator...
There was a problem booting a device in iOS Simulator. Quit Simulator, and try again.
Error installing or running app. Error: No iPhone devices available in Simulator
An iPhone 5s with iOS 11.2 is clearly available and works in Xcode simulator with a simple project ran from Xcode which tells me this is an Expo issue.
I'm using:
Expo version: 3.4.1
Xcode version: 9.2
Mac OS: 10.12.6
Please note - I cannot upgrade my OS. So Xcode version 9.2 is what I must use.
Things I've tried:
set command line tools as correct Xcode version with path /Applications/Xcode.app
delete all simulators and re-add them
start simulator before running app / start simulator after running app
delete all contents under Library/Developer/CoreSimulator/Devices/
I know this question has been asked before, but no solid answer has been given. Maybe someone has figured it out since then.
your phone runs a newer version of software, so you won't be able to use Xcode version 9.2, you have to use 11.2 or newer before running it on your own phone.
if you want it to work with a newer version of iOS, you have to link the device files of newer Xcode version to the version you use.
https://community1.pega.com/community/pega-support/question/building-mobile-apps-newer-ios-versions-older-xcode-versions
this link should help you with your problem, just follow their steps
you have to do this because each iOS has its own files which comes with the new versions of Xcode
I hope this helps you;)
I keep getting the warning:
This app was built with the iOS 11.4 SDK. Starting March 2019, all iOS
apps submitted to the App Store must be built with the iOS 12.1 SDK or
later, included in Xcode 10.1 or later.
...when I upload to the app store.
I run Xcode 10.1, and I also set the base SDK to 12.1 as in the screenshot, but I still get the warning after archiving and uploading. Is there anything else I need to do? Deployment target is 9.0.
Just make sure you are using latest version of Xcode for compiling and uploading your build. Also make sure that you app screens support the all-screen design of iPhone XS Max or the 12.9-inch iPad Pro (3rd generation). Also check if all the pods are also build on latest SDK
I had 2 versions of Xcode (9 and 10) on my machine and after uploading I was also getting this warning. May be lame but once I removed Xcode 9 from my machine this warning went away.
Note: This is just a workaround. I'm not sure it can solve your problem.
Your Base SDK setting is different from mine.
Since I have just uploaded my app to Appstore without any problem (Nov 13, 2018 at 10:23 PM),
I think it's worth a try to set it to iphoneos like in the image and try to archive and upload again.
Xcode version 10.1 (10B61)
After upgrading my Macbook to OS X Sierra and my Apple Watch to watchOS 3.1, I've been getting the following error in the Xcode run project target item:
"Paired device unavailable for development"
It looks like people have encountered this in the past and this specific StackOverflow answer is linked when someone has this problem:
iOS: Watch Kit paired device unavailable for development
However, I've done every single solution that has been listed and I'm still getting this issue. Is there any reason in particular why upgrading to Sierra and watchOS 3.1 would have caused this issue?
Downloading the latest xcode beta (8.1 beta 3) appears to fix this issue
I have the same problem. After I deleted Xcode 9.1 beta then open project with Xcode 9.0. I found that my deployment target is auto set to iOS 11.1 which higher my iPhone OS. After change target to iOS 9.0 it worked.
I removed Xcode 4.2 from my system and installed 4.3 from the App Store.
Now when I want to build my app in MonoDevelop it says
The Apple iPhone SDK is not installed.
Using Xcode I can build and run iOS apps just fine.
I tried reinstalling MonoTouch, but it will fail saying XCode is missing.
Any idea how to get this working again?
Xcode 4.3 moved to a different directory, and MonoTouch can't find it anymore.
Yesterday we released a beta update that fixes this - just enable the beta channel in MonoDevelop (Preferences -> Updates) and then update to MonoDevelop (2.8.6.5) and MonoTouch (5.2.5).
Once we've been able to test the changes a bit more, we'll release these packages to the stable channel.
I'm new to iPhone development. I just did a fresh install of XCode 3.2.5 with iOS SDK 4.2. No previous XCode or iOS versions have been installed before. However trying to compile some sample project from some books gives "Base SDK Missing". :( What to do? How can I use XCode 3.2.5 for older iPhones like 3GS if it only supports 4.2?
When I go to "Project/Edit Project Settings/Architecture/Base SDK/iOS SDK's" only iOS 4.2 is available to be selected.
Do I need to install older XCode first and then upgrade?
In the build settings, you can support older phones by setting "iOS Deployment Target" to something like 3.0. http://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/cross_development/Configuring/configuring.html has more details on the difference between this and the Base SDK setting.
Set Project/Edit Project Settings/Architecture/Base SDK to the Latest OS version, then quit and restart Xcode. You can later set the Deployment target to a lower OS version.
I had the same problem for most of the afternoon. I did everything suggested and nothing worked UNTIL I cleaned and cleaned and saved and rebooted and re-built. Unfortunately that doesn't tell me what actually worked, but it does give everyone "just one more thing" to try.