最近我尝试集成一个pod,但一集成就出现了这个错误:
ld: in /Users/bentran/Library/Developer/Xcode/DerivedData/Nervy-ggvazspfamkfqmgbpaglrqonunrk/Build/Products/Debug-iphoneos/UXCam.framework/UXCam(UXCam.o), building for iOS, but linking in object file (/Users/bentran/Library/Developer/Xcode/DerivedData/Nervy-ggvazspfamkfqmgbpaglrqonunrk/Build/Products/Debug-iphoneos/UXCam.framework/UXCam(UXCam.o)) built for iOS Simulator, file '/Users/bentran/Library/Developer/Xcode/DerivedData/Nervy-ggvazspfamkfqmgbpaglrqonunrk/Build/Products/Debug-iphoneos/UXCam.framework/UXCam' for architecture arm64
我看到许多其他stackoverflow帖子都在谈论这个问题,但反过来(应用程序是为物理设备编译的,但不是为模拟器编译的(。有人知道怎么解决这个问题吗?
编辑:运行lipo-info/Users/bentran/Library/Developer/Xcode/DerivedData/Nervy ggvazspfamkfqmgbpaglqonurk/Build/Products/Debug iphoneos/UXCam.framework/UXCam
生产:fat文件中的体系结构:/Users/bentran/Library/Developer/Xcode/DerivedData/Nervy-ggvazspfamkfqmgbpaglrqonurk/Build/Products/Debug iphoneos/UXCam.framework/UXCam为:arm64 x86_64 i386
我也面临同样的问题。将react native ux cam包更新到5.3.1版本,然后更新pod解决了这个问题。