After installing Xcode 14.3 in order to run my app on my ios 16.3 iPhone XS. I get the following error:
File not found: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a
Anybody manage to get around this?
25
Answers
I figured out the problem. I had to increase the deployment target for the Pod module that was causing the error to iOS 15.0. At least, that's what worked for me.
Add below code to Podfile, it works for me. Version 14.3 beta 2 (14E5207e)
This is the right code for podfile.
you can copy ‘libarclite_iphoneos.a’ from Xcode 14.2 to Xcode 14.3, it worked for me
You can manually modify the minimum deployment version of the third-party framework.
e.g.: iOS 8.0 –> iOS 11.0
I updated the
post_install
in my Podfile toAdditionally, I set the Minimum Deployments to 13 as well (Runner > Targets > Runner)
After this, I updated project’s pods by running in the terminal
Try running the app from your IDE, it should work now.
If you continue to have issues, try cleaning the build folder within Xcode and running the app, also within Xcode.
Once you have successfully ran the app from Xcode, go back to your IDE and you’ll be able to run the app.
I spent hours and I’ve found out the problem, it was xcode version 14.3.
I tried the above suggestions (update your podfile) and it worked, but the problem is you can’t build IPAs or XCArchives.
Here’s what I did in my case:
I downloaded xcode version 14.2 here https://xcodereleases.com/
Just set the Command Line Tools to Xcode14.2
P.S. Just to make sure, run the usual first:
With this I was able to build and create XCArchives. Hope this helps other flutter devs!
Nothing worked for me. Just downgraded the Xcode to 14.2 and it works!!
Just create a folder called ‘arc’ in the following path:
Download and paste the contents of this repository into the folder you just created and then build again.
Edit
This answer could be valid for the question in this topic as well
The old answer
It’s worked for me.
edit: you may also need to run this command: sudo
chmod +x *
if you’re running into this issue with the leveldb CocoaPod (a dependency of FirebaseFirestore and FirebaseDatabase), we’ve published version leveldb-library version 1.22.2 with updated minimum Apple platform versions to be compatible with Xcode 14. Run
pod update
to get 1.22.2.Open Terminal and go to the follow folder:
Create the folder arc:
Give the necessary permission:
Now you will be able to build and run, but not Archive.
To fix this, follow the steps:
Then…Archive
tl;dr: Change deployment target without downgrading pods
Many answers here are about updating
IPHONEOS_DEPLOYMENT_TARGET
in thepost_install
hook of Cocoapods. I had to tweak this solution a little bit, since my project uses pods which already have a higher deployment target, and the provided solutions would downgrade them, causing their build to break (e.g. when the pods are using newer APIs).So here’s my patched approach, to only change the deployment target if it’s too low:
1. First update
PodFile
.Update target as per your need. For me
11.0
was minimum requirement. This basically updatesminimum deployments
from anything you have to11.0
so you don’t need to update manually.Now
Missing file libarclite_iphoneos.a
must be fixed. However, you might get another issue while generating build. If so, please go through following steps.2. Can’t generate build?
.sh Path:
flutter-project-folder/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh
Steps
Pods-Runner-frameworks.sh
file from sublime (or any other)source="$(readlink "${source}")"
and replace it withsource="$(readlink -f "${source}")"
flutter build ipa --release
[important]
Now open sublime again. You will see it will remove-f
. At this time immediately add-f
again and save the file. Now the build should be successful.This worked for me. Hope this helps.
Thanks
After updating to XCode 14.3 I got the same error message as described in the question. In my case it was an error in a pod that was shown. My project is a native iOS app and no flutter like answers from others seem to be dealing with.
The following worked for me:
# in front of each pod
.pod install
(will remove all pods).xcworkspace
project in XCode again and do a clean (command-shift-k
).Uncomment pods
in Podfile and add this before the last end in the Podfile (change 11.0 to the minimum version you want to support
):From the Flutter team.
No need for workarounds, just update Flutter to latest version
3.7.11
and runflutter upgrade
in your project, and you should be good.https://github.com/flutter/flutter/issues/124433.
Just tested in my Flutter project, and I can confirm I can build and archive the xcode project
I would like to improve moveFastLink‘s solution.
There are two things that I think could be improved:
13.0
.13.0
. Instead,11.0
very much suffices.For these reasons I propose to add this to the
Podfile
of your project:This piece of code checks if the current
IPHONEOS_DEPLOYMENT_TARGET
is lower than thewanted_project_target
and only re-assigns it towanted_project_target
if this is the case.You can see the offending pod in the errors (yellow). I just changed that to my target (14)
For me, macOS project, increase the minimum deployments version for that target.
If you are working in swift/objective-c, No further action is needed except:
Thereafter, clean build folder from Product Menu, and hopefully you’ll be able to build the project successfully.
Actually, the other answers are correct, but to an amateur, it’s still quite difficult to figure it out.
Answer:
It seems like iOS stopped supporting iOS 8, so the minimum should be 11.0
There are 2 ways to upgrade your iOS:
1- Manually update ALL targets with a minimum deployment at 11.0.
It will work perfectly but tiring, so…
2- Adjust the pod code to force all targets with a minimum deployment at 11.0.
Remember to clean and de-integrate pod and re-install it.
I had this issue when using Pods to add Firebase to my app. What fixed it for me was: Select the ‘Pods’ project in the the file navigation on the left, then select the ‘General’ tab, select the ‘leveldb-library’ target and set the minimum deployment to iOS 11.0.
My system: Macbook pro M1
Xcode: 14.3
To fix this issue, you must ensure that the iOS Deployment Target of your pods is 11.0; pods with a iOS Deployment Target of 8.0 were causing the issue for me.
Example: pods that were set to iOS Deployment Target 8.0: leveldb-library, nanopb.
You will receive this error for any pods that are set to 8.0 when building, so change them to 11.0 either manually or with a post install script in your Podfile.
Fixed in Flutter 3.7.11
https://github.com/flutter/flutter/issues/124340
https://github.com/flutter/flutter/wiki/Hotfixes-to-the-Stable-Channel