335

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

How can I fix it?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Justin A
  • 3,891
  • 2
  • 18
  • 22

36 Answers36

327

Add the below code to the Podfile. It works for me. Version 14.3 beta 2 (14E5207e)

post_install do |installer|
    installer.generated_projects.each do |project|
          project.targets.each do |target|
              target.build_configurations.each do |config|
                  config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
               end
          end
   end
end
Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
moveFastLink
  • 3,395
  • 1
  • 4
  • 4
  • 49
    A comment explaining why this works would be helpful for anyone looking to implement it. Since this has implications for what versions of iOS you support, it should be explained why this is a solution. – Daniel Allen Mar 31 '23 at 18:14
  • 3
    This worked for me with my flutter app! I changed the target to 11. Xcode 14.3, Flutter 3.7.7, testing out on iPhone 14 Pro Max simulator. This error came out of the blue today it seems like. – Aaron Krauss Mar 31 '23 at 18:17
  • 1
    This pod didn't work for me. The @JustAimz's did – AndreP Apr 01 '23 at 19:17
  • 11
    This solution works for me. Instead of 13.0, I set the IPHONEOS_DEPLOYMENT_TARGET to 11.0 only. I'm using Xcode v14.3 on macOS Ventura 13.3. Make sure you run pod install again after enter the given code on your podfile. ^_^ – Blurzschyter Apr 02 '23 at 20:54
  • 2
    @DanielAllen, I don't know why it works, I find it from somewhere I forgot. – moveFastLink Apr 06 '23 at 04:09
  • 13
    xCode always broke something when is updated – Oscar Gonzalez Apr 16 '23 at 16:27
  • 1
    What if I am not using Pods? How to resolve this? – Developer Apr 17 '23 at 06:59
  • @Developer Try this way, in Xcode Build Settings, search IPHONEOS_DEPLOYMENT_TARGET, set at least iOS 11.0. if it doesn't help, try next anwser. – moveFastLink Apr 17 '23 at 09:53
  • 3
    The [latest Flutter version (3.3.10)](https://github.com/flutter/flutter/issues/123890#issuecomment-1498164468) includes a fix! No need to mess with the `Info.plist` anymore. – Schnodderbalken Apr 29 '23 at 08:34
  • thanks . its worked but you have to do install on terminal ' pod install' . saved my time – Erhan Demirci May 05 '23 at 08:04
  • 1
    Doesn't work . Use @JustAimz's answer https://stackoverflow.com/a/75867043/9185411. IMPORTANT!replace the existing post_install with the given one – Mad World May 11 '23 at 15:00
  • I set it to `config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '16.4'`, not realizing that this caused my app to crash on older device (because I was only looking at the general App Deployment Target) ... – Felix Aug 03 '23 at 14:23
231

Open Terminal and go to the following folder:

cd /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/

Create the folder "arc":

Go to System PreferencesSecurity & PrivacyFull Disk AccessTerminal, and do:

sudo mkdir arc
cd  arc
sudo git clone https://github.com/kamyarelyasi/Libarclite-Files.git .

Give the necessary permissions:

sudo chmod +x *

Now you will be able to build and run, but not Archive.

To fix this, follow the steps:

In Xcode, navigate to:

  • PodsTarget Support FilesPods-Runner or Pods-App

  • Open file Pods-Runner-frameworks.sh or Pods-App-frameworks.sh

  • Find the line: source="$(readlink "${source}")"

  • Replace it by: source="$(readlink -f "${source}")"

Then...Archive

Enter image description here

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Edimar Martins
  • 2,631
  • 1
  • 9
  • 10
  • 1
    Big thanks. This works for me: 1 - Download files from Libarclite-Files 2- Add them to /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/ – Tuan Nguyen Quoc Apr 05 '23 at 21:44
  • 2
    thanks, just move cloned files from the Libarclite folder ( /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/ ) to the parent folder (in the lib folder ), then give permission to it. – Mohamad Reza Norouzi Apr 06 '23 at 12:08
  • 3
    Every few years there is an XCode update that breaks building/archiving...so annoying. This, however, worked perfect. Thanks! – Lars Apr 07 '23 at 11:20
  • 1
    Works perfectly. This should be more documented. Any idea why it does break? – redacted Apr 07 '23 at 20:31
  • 1
    Great solution. Could you please explain why this happened and what exactly is Libarclite-Files and why do we need it? – JIJO J Apr 08 '23 at 08:11
  • 1
    Before changing Symlinked in Pods-Runner-frameworks.sh run: `pod install` – Pshtiwan KarDo Apr 08 '23 at 23:56
  • 38
    I wanna point out that it's not a good idea to give random files from GitHub *root* and executable permissions – DarkNeuron Apr 10 '23 at 16:34
  • 1
    I did it same think it's not work but I copy "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib" folder data to parent folder "usr" . It's will fine – Lalit kumar Apr 12 '23 at 07:11
  • 1
    Can anybody please explain why this happens? BTW It works Thanks :) – Muhammad Shahzad Apr 18 '23 at 06:29
  • 2
    @MuhammadShahzad i read it somewhere that statement was pods path getting updated so pods are not readable on old path that's why it's happened. – Jatin Apr 18 '23 at 10:03
  • 1
    I don't have pod files can any suggest what to do in that case – Ron Weasley Apr 28 '23 at 20:47
  • For me I just create arc directory and download the Libarclite-Files folder manually and put all files into the arc directory. – Muzahid May 18 '23 at 17:46
  • 1
    This answer should be marked as the correct one. It worked 100% to archive and run the project on my side using M1 Pro 2021 – Jesús Castro May 26 '23 at 22:48
  • this works for me. thank you – Supun Dewapriya Jun 18 '23 at 10:11
  • It worked ! It the terminal not working (permission deny) , create folder and copy manually. – user2481102 Jun 19 '23 at 08:45
  • brilliant thank you!!! – Mu'aaz Joosuf Jun 20 '23 at 07:22
  • Big Thanks! Works Perfectly! – Reema Jun 29 '23 at 06:35
  • Sometimes the system does not allow creating and copying files using commands. In that case, create a folder on the desktop and clone files into the desktop folder. Once it is completed, copy and paste the path from above. This method worked for me. Also, there is no need to use [sudo chmod +x *]. – D.A.C. Nupun Jul 26 '23 at 05:59
  • This worked like a charm! Thank you! – Eiri Aug 16 '23 at 10:51
143

You can manually modify the minimum deployment version of the third-party framework.

e.g.: iOS 8.0 --> iOS 11.0

An image showing a settings menu within xcode. On the left side, 'Pods' is selected. Then, 'General' is selected. In the center of the screen, a dropdown menu with the title "Minimum Deployments" is higlighted, and is currently set to iOS 8.0.

Slate
  • 221
  • 5
  • 14
Zhi Zhou
  • 1,499
  • 1
  • 8
  • 11
67
post_install do |installer|
  installer.generated_projects.each do |project|
        project.targets.each do |target|
            target.build_configurations.each do |config|
                config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
             end
        end
 end
    installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
  end
end

This is the right code for podfile.

JustAimz
  • 695
  • 1
  • 2
  • 1
    Being a complete novice here, how and where do I implement this script? – Andy Mar 29 '23 at 10:37
  • 2
    I want my app to support down to iOS 11, will this affect it? – Crizant Mar 31 '23 at 09:29
  • @Andy You need to add this to the end of your Podfile file, found in the ios directory of your application. There will be another structure that looks like ```post_install do |installer| {logic} end``` – Jonas Smith Apr 02 '23 at 13:25
  • 1
    Thanks! You saved my day! Also updated minimum deployment version of Pods.xcodeproj to same as main project. After that exec `pod install`, clean build folder and build project. – orange01 Apr 16 '23 at 11:37
  • It works. Xcode 14.3. Don't forget to pod install, then clean. – djdance May 11 '23 at 16:54
  • Still work with 14.6, "pod install" after edit and then it works perfectly. – Khang Tran May 27 '23 at 00:28
  • Works perfect with modified ['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0' as well. – Elmar Jul 11 '23 at 03:58
53

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.

enter image description here

It will work perfectly but tiring, so...

2- Adjust the pod code to force all targets with a minimum deployment at 11.0.

enter image description here

post_install do |installer|
    installer.generated_projects.each do |project|
          project.targets.each do |target|
              target.build_configurations.each do |config|
                  config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
               end
          end
   end
end

Remember to clean and de-integrate pod and re-install it.

cd [project directory]
pod deintegrate
pod clean
pod install
Nguyen Tan Dat
  • 3,780
  • 1
  • 23
  • 24
35

I updated the post_install in my Podfile to:

post_install do |installer|
  installer.generated_projects.each do |project|
    project.targets.each do |target|
      target.build_configurations.each do |config|
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
      end
    end
  end

  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
  end
end

Additionally, I set the Minimum Deployments to 13 as well (RunnerTargetsRunner):

Xcode target minimum deployment target

After this, I updated the project's pods by running this in the terminal:

cd ios;

# Remove the pods
pod deintegrate;

# Remove the Podfile.lock
rm -f Podfile.lock;

# Installs the pods
pod install --repo-update;

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.

Xcode clean build folder

Once you have successfully run the app from Xcode, go back to your IDE and you'll be able to run the app.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
mrgnhnt96
  • 3,562
  • 1
  • 17
  • 36
27

Update

This answer could be valid for the question in this topic as well

The old answer

It's worked for me.

cd /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/

sudo mkdir arc

# While executing the above command, the OS will block it
# and give an error. Allow permission from the settings
# and run the command again.

cd arc
sudo git clone https://github.com/kamyarelyasi/Libarclite-Files.git .

You may also need to run this command: sudo chmod +x *

c-an
  • 3,543
  • 5
  • 35
  • 82
Fatih
  • 945
  • 15
  • 26
24

Since Xcode 14.3 you have to set all your Pods to a minimum deployment target of iOS 11. Then it will work

  1. Navigate to [Pods] project in the Project Navigator.
  2. Select "each" target under it and perform the step 3 below.
  3. Change the Minimum Deployment Target to iOS 11 version in the drop-down list therein.
SwiftiSwift
  • 7,528
  • 9
  • 56
  • 96
15

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:

  1. Comment out all pods in Podfile by adding # in front of each pod.
  2. Close XCode.
  3. Run pod install (will remove all pods).
  4. Open xcworkspace project in XCode again and do a clean (command-shift-k).
  5. 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):
post_install do |installer|
    installer.generated_projects.each do |project|
        project.targets.each do |target|
            target.build_configurations.each do |config|
                config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
            end
        end
    end
end
  1. Close XCode.
  2. Run pod install.
  3. Open xcworkspace project in XCode and error should be gone.
DevB2F
  • 4,674
  • 4
  • 36
  • 60
15

From the Flutter team.

No need for workarounds, just update Flutter to latest version 3.7.11 and run flutter 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

David_E
  • 7,130
  • 4
  • 26
  • 29
12

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 IPA files or XCArchives.

Here's what I did in my case:

  1. I downloaded Xcode version 14.2 here https://xcodereleases.com/

  2. Just set the Command Line Tools to Xcode 14.2

P.S.: Just to make sure, run the usual first:

flutter clean && flutter pub get

With this, I was able to build and create XCArchives. I hope this helps other Flutter developers!

Xcode Settings

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Anton
  • 255
  • 1
  • 2
  • 10
12

Just create a folder called 'arc' in the following path:

/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/

Download and paste the contents of this repository into the folder you just created and then build again.

https://github.com/kamyarelyasi/Libarclite-Files

  • This did not work for as i keep getting "Command PhaseScriptExecution failed with a nonzero exit code" and I did flutter clean and even run pod install but still. – yendis Apr 03 '23 at 15:21
  • @yendis, did you try an earlier solution suggested here itself -> https://stackoverflow.com/a/75924853/1349159 It worked for me – ranjjose Apr 06 '23 at 12:21
  • It solves the issue partially. After doing this, you can build and run the app but Archiving for uploading AppStore still fails. – Elmar Apr 14 '23 at 06:15
8

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.

Justin A
  • 3,891
  • 2
  • 18
  • 22
8

tl;dr: Change deployment target without downgrading pods

Many answers here are about updating IPHONEOS_DEPLOYMENT_TARGET in the post_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:

post_install do | installer |
  installer.generated_projects.each do |project|
    project.targets.each do |target|
      target.build_configurations.each do |config|
        if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].split('.').first.to_i < 11
          config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
        end
      end
    end
  end
end
dr_barto
  • 5,723
  • 3
  • 26
  • 47
  • Yep this seem the best answer for multiple pod versions. I use it like this: post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] == '8.0' config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0' end end end end – david72 Aug 17 '23 at 23:35
8

Here are the step-by-step instructions, including the image links:

  1. Open a web browser and go to the following URL: https://github.com/kamyarelyasi/Libarclite-Files

  2. On the GitHub page, you will see a list of files. Locate the file named libarclite_iphonesimulator.a.

    GitHub Files

  3. Click on the file name (libarclite_iphonesimulator.a) to open it.

  4. On the file page, click the "Download" button to download the file to your computer. Choose a suitable location to save the file.

  5. After the download is complete, locate the downloaded file (libarclite_iphonesimulator.a) on your computer.

  6. Open the Finder application on your Mac.

  7. In the menu bar, click on "Go" and select "Go to Folder" from the dropdown menu.

  8. In the "Go to the folder" dialog box, enter the following path and click the "Go" button: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/

    Go to Folder

  9. If the arc directory does not exist in the specified path, right-click on the "arc" folder in the Finder and select "New Folder" from the context menu. Rename the newly created folder as "arc".

  10. Now, locate the downloaded file (libarclite_iphonesimulator.a) and copy it.

  11. Go back to the Finder window containing the arc directory.

  12. Right-click on an empty space within the arc directory and select "Paste Item" from the context menu. This will paste the copied file (libarclite_iphonesimulator.a) into the arc directory.

  13. Once the file is successfully copied, you have completed the process of downloading the files and copying the libarclite_iphonesimulator.a file to the specified location.

loonix
  • 430
  • 7
  • 14
7

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.

Kudos
  • 1,224
  • 9
  • 21
3

Nothing worked for me. I just downgraded Xcode to 14.2 and it worked!

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
  • 2
    This worked. The issue is related to new Xcode. I downgraded and it worked like charm. Thanks. – yendis Apr 03 '23 at 16:43
3

If you are working in swift/objective-c, No further action is needed except:

  1. Navigate to [Pods] project in the Project Navigator.
  2. Select "each" target under it and perform the step 3 below.
  3. Change the Minimum Deployments value to the lowest available version in the drop-down list therein. (DO NOT type in, manually)

enter image description here

Thereafter, clean build folder from Product Menu, and hopefully you'll be able to build the project successfully.

programmer
  • 507
  • 5
  • 16
  • Please do not post duplicate answers. – HangarRash Apr 21 '23 at 16:12
  • 1
    @HangarRash Please take another look at my answer. It is well-written, straightforward and advises the readers against any unnecessary hassle such as adding extra code to the pod file, restarting Xcode etc. mentioned in other answers. More importantly, the step 2 is a must because the issue will not be resolved until it is ensured that each and every target is set to the lowest available version shown in the Minimum Deployments dropdown. – programmer Apr 24 '23 at 06:24
2

1. First update PodFile.

post_install do |installer|
  installer.generated_projects.each do |project|
    project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
        end
    end
  end
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
  end
end

Update target as per your need. For me 11.0 was minimum requirement. This basically updates minimum deployments from anything you have to 11.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

  1. Open Pods-Runner-frameworks.sh file from sublime (or any other)
  2. Search for source="$(readlink "${source}")" and replace it with source="$(readlink -f "${source}")"
  3. Run flutter build ipa --release
  4. [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

Santosh
  • 363
  • 2
  • 14
2

For me, macOS project, increase the minimum deployments version for that target.

Tiago
  • 1,984
  • 1
  • 21
  • 43
2

You can try adding this code to the Pod file

    post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
    target.build_configurations.each do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
    end
  end
end

Don't use this code

    post_install do |installer|
    installer.generated_projects.each do |project|
          project.targets.each do |target|
              target.build_configurations.each do |config|
                  config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
               end
          end
   end
end
The iOSDev
  • 5,237
  • 7
  • 41
  • 78
Hoang
  • 87
  • 3
2

It seems like some files are missing from Xcode 14.3 above (including Xcode 15). You can add them back by this command:

sudo git clone https://github.com/MojtabaHs/xcode-arc `xcode-select -p`/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc

This will add them to the currently selected Xcode. You can select another Xcode using xcode-select command and run the above command again to make it work too.

Mojtaba Hosseini
  • 95,414
  • 31
  • 268
  • 278
1

I would like to improve moveFastLink's solution.

There are two things that I think could be improved:

  • In moveFastLink's solution, when one of the pods already has a higher deployment target, it will be "downgraded" to 13.0.
  • OP asks for a solution that solves his problem. For the problem to be solved, it's not necessary so set the target version of every pod to 13.0. Instead, 11.0 very much suffices.

For these reasons I propose to add this to the Podfile of your project:

wanted_project_target = 11.0

post_install do |installer|
  installer.generated_projects.each do |project|
    project.targets.each do |target|
      target.build_configurations.each do |config|
        current_project_target = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f

        if current_project_target < wanted_project_target
            config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = wanted_project_target.to_s
        end
      end
    end
  end
end

This piece of code checks if the current IPHONEOS_DEPLOYMENT_TARGET is lower than the wanted_project_target and only re-assigns it to wanted_project_target if this is the case.

Schnodderbalken
  • 3,257
  • 4
  • 34
  • 60
1

In one line: Just search for "iphoneos_deployment_target" in your xcode and and change any target lower than 11.0 to 11.0.

Renegade
  • 642
  • 1
  • 10
  • 19
1

update flutter sdk to 3.7.12 to fix

SwiftiSwift
  • 7,528
  • 9
  • 56
  • 96
1

100% Working and Tested

For my case I was getting error like below:

enter image description here

When I have updated my Xcode with latest version, my running project was getting error.

Executable path is a directory

later I saw in Xcode below error:

enter image description here

This is how I resolved this:

By using terminal I have added arc directory and change its permission

  1. Open the Terminal app in your Mac.

  2. Enter command:

sudo mkdir arc
  1. It will ask for permission if you haven't set permission previously for access in App Management.

enter image description here

4.Enter command in terminal:

cd  arc
  1. Enter command in terminal:
sudo git clone https://github.com/kamyarelyasi/Libarclite-Files.git .

Once this command fired now this time to change permission

sudo chmod +x *

Almost done.

Simply search in Xcode for following:

source="$(readlink "${source}")"

and just replace it by following:

source="$(readlink -f "${source}")"

its look like:

enter image description here

DONE. You are able to generate build and also can able to run in simulator.

enter image description here

Mr.Javed Multani
  • 12,549
  • 4
  • 53
  • 52
0

If you're running into this issue with the LevelDB CocoaPod (a dependency of FirebaseFirestore and FirebaseDatabase), we've published a version of leveldb-library (1.22.2), with updated minimum Apple platform versions to be compatible with Xcode 14. Run pod update to get 1.22.2.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Paul Beusterien
  • 27,542
  • 6
  • 83
  • 139
  • It updated to 1.22.2 (Installing leveldb-library 1.22.2 (was 1.22.1) but didn't worked. – Edimar Martins Apr 04 '23 at 00:24
  • Your app may be using other pods besides Firebase which have the issue. If it's only leveldb and Firebase, please provide the detail at https://github.com/firebase/firebase-ios-sdk/issues and we'll investigate. – Paul Beusterien Apr 04 '23 at 13:16
0
Inside script "Pods-${TARGET}-frameworks.sh"
Inside function install_framework()
...
# Use filter instead of exclude so missing patterns don't throw errors.
# 
# 1. fix framework path at $source variable
#    framework not found at script location
source="${1}"

echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\""

# 2. replace rsync --links flag with --copy-links 
#    rsync will copy files and directories instead do symlinkink
#    if don't do this, later code sign failed, when try to codesign symbolic link
rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --copy-links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}"
...
That's all ctrl+s and archive
Roman Solodyashkin
  • 799
  • 12
  • 17
0

You can see the offending pod in the errors (yellow). I just changed that to my target (14)

user1634451
  • 5,133
  • 6
  • 30
  • 43
0

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.

Elliott Davies
  • 833
  • 9
  • 6
0

I just fix this issue by upgrading FMBD ios minimum deployment (8 for me) to 11 inside Pods general.

Logan
  • 31
  • 3
0

Choosing the IOS version 11.0 or higher solved my problem.!!! enter image description here

-1

You can copy ‘libarclite_iphoneos.a’ from Xcode 14.2 to Xcode 14.3. It worked for me.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
-2

You just need to update your pods to the newest version.

I reinstalled ruby with rvm and updated cocoapods. After that I updated my pods to the newest version and everything works fine (for me).

Iskandir
  • 937
  • 1
  • 9
  • 21
-2

I have fixed this issue by manually goto library and change version 8.0 to 13.0 for each library. See in screenshotenter image description here