xcode13 报错收集

2021-12-21  本文已影响0人  阳光下的灰尘

报错 1

Undefined symbols for architecture arm64:
  "___llvm_profile_runtime", referenced from:
      ___llvm_profile_runtime_user in SwifterSwift(CLVisitExtensions.o)
      ___llvm_profile_runtime_user in SwifterSwift(FileManagerExtensions.o)
      ___llvm_profile_runtime_user in SwifterSwift(UIApplicationExtensions.o)
      ___llvm_profile_runtime_user in SwifterSwift(CATransform3DExtensions.o)
      ___llvm_profile_runtime_user in SwifterSwift(ColorExtensions.o)
      ___llvm_profile_runtime_user in SwifterSwift(UIViewExtensions.o)
      ___llvm_profile_runtime_user in SwifterSwift(WKWebViewExtensions.o)
      ...
     (maybe you meant: ___llvm_profile_runtime_user)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Build Settings -> Other Linker Flags 添加 -ObjC-force_load 后面要跟一个路径 $(SRCROOT)/BoCBill/Vendor/SwiftPods/SwifterSwift.framework/SwifterSwiftSwifterSwift.framework 后台加一个 SwifterSwift 表示是静态库,或者 .a 文件

示例图1

问题2

xcode 安装失败

失败原因(点击 details 按钮查看)

Unable to install " ***** "
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620375
User Info: {
    IDERunOperationFailingWorker = IDEInstalliPhoneLauncher;
}
--
The code signature version is no longer supported.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620375

找到对应的 工具库 把 Embed & Sign 改为设置 Do Not Embed
注意,不是全部都要改,要找到对应的工具库修改

image.png
上一篇下一篇

猜你喜欢

热点阅读