액티브 스킬/플러터

<플러터: Xcode> Xcode 14.3 빌드 에러

디벅잉 2023. 4. 4. 21:49
728x90

 

🐛

 

Xcode 14.3 에러 #1

Could not build the precompiled application for the device.
Error (Xcode): File not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a

Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)

 

해결 #1

ios/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

(아래는 코드 추가한 부분 이미지)

 

에러 #2

Command PhaseScriptExecution failed with a nonzero exit code

 

해결 #2

ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh 파일에서 아래 코드를 찾아 수정했습니다.

# 변경 전
source="$(readlink "${source}")"

# 변경 후
source="$(readlink -f "${source}")"

(아래는 코드 추가한 부분 이미지)

 

📌

 

https://stackoverflow.com/questions/75902676/xcode-14-3-build-error-after-ios-16-4-update-libarclite-iphoneos-a-not-found-l

 

Xcode 14.3 build error after iOS 16.4 update: libarclite_iphoneos.a not found, linker command failed

I recently updated my iPhone to iOS 16.4 and Xcode to version 13.4. Since the update, I'm encountering an error while trying to build my iOS application in Xcode. The error message is as follows: C...

stackoverflow.com

https://stackoverflow.com/questions/63533819/rsync-error-some-files-could-not-be-transferred-code-23-command-phasescriptex

 

rsync error: some files could not be transferred (code 23) Command PhaseScriptExecution failed with a nonzero exit code

I tried to connect flutter project to my iPhone, but suddenly this error showed up after adding Google AdMob. I've already tried keychain solution(Xcode 10.2.1 Command PhaseScriptExecution failed w...

stackoverflow.com

 

728x90