I upgraded to macOS Ventura using Xcode 14.1 and I'm now getting this build error:
iOS deployment target is 16.0 and project format is Xcode 14.0 compatible. I'm using cocoapods 1.11.3 for package management.
Turns out you have to go to Project > Info > Configuration and change the following:
Related
I have a macOS version 10.13.6, so the only version of Xcode I can download is 10.1.
Now when I create a new iOS project with Cordova and try opening it with Xcode, I get this error:
The project at 'project-location' cannot be opened because it is in a future Xcode project file format. Adjust the project format using a compatible version of Xcode to allow it to be opened by this version of Xcode.
How can I adjust the project to run on Xcode version 10.1 if I can't open it in Xcode in the first place?
According to the Cordova iOS Platform Guide, Cordova requires Xcode 11 or later so you can't use it with Xcode 10.1.
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Release ===
Swift 3 mode has been deprecated and will be removed in a later version of
Xcode. Please migrate "Runner" to Swift 4.2 using "Convert > To Current
Swift Syntax…" in the Edit menu.
Swift 3 mode has been deprecated and will be removed in a later version of
Xcode. Please migrate "Runner" to Swift 4.2 using "Convert > To Current
Swift Syntax…" in the Edit menu.
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Release ===
--path/Runner/GeneratedPluginRegistrant.m:
6:9: fatal error: 'connectivity/ConnectivityPlugin.h' file not found
#import
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
flutter doctor:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.3.11-pre.10, on Mac OS X 10.13.6 17G65, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.3)
[✓] Connected device (1 available)
• No issues found!
xcode version: 10
and I'm fixing bugs of my old project
1-In Xcode >> open Product menu >> then choose clean
2-While you are in iOS folder open terminal and run pod install
Reference: https://github.com/flutter/flutter/issues/21989#issuecomment-509193686
I was facing this issue from last week. I search a lot but I didn't find anything helpful.I follow the below step to build IPA:
https://flutter.dev/docs/deployment/ios
I was trying to build IPA using projectPath/ios/Runner.xcodeproj in xcode which was wrong and throwing this error "connectivity/ConnectivityPlugin.h' file not found".
How to solve problem:
1) Close xCode.
2) Install or update POD in projectPath/ios/ using terminal.
3) ProjectPath/ios/Runner.xcworkspace open it using xCode.
4) On top menu of xCode go to Product and click on Archive.
5) To see IPA goto Top menu of xCode => Window and click on Orginazer.
Note: Nothing need to be changed in project code. Pod install/Update required.
And after successfully build IPA from projectPath/ios/Runner.xcworkspace I opened projectPath/ios/Runner.xcodeproj again and I was seeing this error. So according to my knowledge ignore this error in Runner.xcodeproj
The solution worked for me is as follows.
First do flutter clean
then goto projectDirectory/ios and open the Runner.xcworkspace file instead of Runner.xcodeproject
Then go to Product menu in the opened xcode window and click on on Archive/Build as per your need.
1. First do flutter clean
2. Secondly do flutter build ios
this is automtically run the pod install.
I am able to run my React Native application in the simulator via Expo, but as soon as I try to build it with Xcode, I receive this error:
'SFSafariViewController' is only available on iOS 9.0 or newer (React
Native Build)
These are the steps I took to build.
Run npm run eject
Eject with 'ExpoKit' option
cd into the ios directory
Run pod install
Open up the xcworkspace file in Xcode
In both the project and the target, I changed the Deployment Target value to 11.0
Run the build to a iOS version 11 simulator
The build then fails with 7 of the above errors. I am using Xcode version 9.0, Pods version 1.3.1.
Any help would be greatly appreciated.
For me, the errors were coming from the "AppAuth" dependency.
I fixed this issue by setting the "iOS Deployment Target" of this package to iOS 9.0.
I recently realized in the terminal that my swift version was swift 3.0 (swift-3.0-GM-CANDIDATE). I have already updated to xcode 8.3 and I know xcode 8.3 comes with swift 3.1, so I checked the xcode toolchain set in xcode preference pane and it was set to xcode 8.3, but when i opened the directory containing the toolchains i found out that the latest xcode toolchain file was just a alias that points back to the swift-3.0-GM-CANDIDATE.xtoolchain. What do I do, do i download the standalone xcode 8.3 toolchain and install?
In my iOS project using Xcode 4.2, all targets are showing Latest iOS (iOS 5.0) in the build settings, and I have no other available options. Can I deploy to a device running iOS 4.x using Xcode 4.2 Beta, and if so how?
Note: I'm only interested in ARC at this time, otherwise I'd be using 4.02 (Snow Leopard).
Are you looking at the "Base SDK" setting or the "iOS Deployment Target". You want to build against the "Latest" SDK, but set the deployment target to the minimum supported iOS version.