前言

  • Unity 2019.2.11f1
  • Vuforia 8.5.9

iOS Build and Run Error

ld: library not found for -liPhone-lib

clang: error: linker command failed with exit code 1 (use -v to see invocation)

img_1

Solution - iOS Build and Run Error

Build Setting -> Search Paths -> Library Search Paths

移除 "$(SECROOT)" 參數

img_2

iOS Archive Error

ld: warning: ignoring file ...  building for iOS-armv7 but attempting to link with file built for iOS-arm64.

img_3

Solution - iOS Archive Error

根據 Vuforia Engine Release Notesv8.1.7之後不支援 32-bit,並且最低支援 iOS 11,因此需要把專案版本最低版本設定為 iOS。

  • 設定 iOS architectures

    Build Setting -> Architectures -> Architectures

    Architectures 改為 Standard architectures

    img_5

  • 設定 iOS 版本

    Build Setting -> Deployment -> iOS Deployment Target

    iOS Deployment Target 改為 iOS 11.0

    img_4

iOS Distribution Error

ERROR ITMS-90534

img_6

Solution - iOS Distribution Error

請使用 Xcode 11.2.1 輸出,即可修正。

參考文章

Unity Xcode Error “library not found for -” の解決方法

Can’t submit apps to AppStore: ERROR ITMS-90534: “Invalid Toolchain