iosxcodecordovaionic4mobile-development

Xcode 15.3 build failed


I have ionic project with the following details:

All my code work perfect untill I upgrade xcode to v15.3

What I did after upgrade xcode:

config.xml

<preference name="deployment-target" value="12.0" />

podfile

platform :ios, '12.0'
use_frameworks!
target 'project' do
    pod 'FBSDKCoreKit', '5.5.0'
    pod 'FBSDKLoginKit', '5.5.0'
    pod 'FBSDKShareKit', '5.5.0'
    pod 'FirebaseMessaging', '~> 2.0.0'
    pod 'GoogleSignIn', '5.0.2'
end

Then I'm ready to build ios platform I used commaned ionic cordova build ios

Got error

Ld /Users/Admin/project/platforms/ios/build/emulator/nanopb.framework/nanopb normal (in target 'nanopb' from project 'Pods')
(1 failure)
xcodebuild: Command failed with exit code 65
[ERROR] An error occurred while running subprocess cordova.

What I try:

SDK does not contain 'libarclite' at the path '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a'; try increasing the minimum deployment target

Please help. Thank you.


Solution

  • Your Pods PROJECT can have a Deployment Target that is different from one or more of the TARGETS. You will get the error about 'libarclite' when one or more of the TARGETS have a Minimum Deployments for iOS set to less than 12.0. The line in the Podfile "platform :ios, '12.0'" only sets the PROJECTS Deployment Target, not the individual TARGETS.

    Go to the Build Settings for each of the TARGETS and either:

    1. change the line "iOS Deployment Target iOS X.X" to 12.0 or higher, or
    2. if you want to use the PROJECTs Deployment Target click on that line and remove it using the delete key.