Ben Tran
Ben Tran

Reputation: 11

App compiles for a simulator but not a physical device

Recently I tried integrating a pod but as soon as I do I get this error:

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

Ive seen many other stackoverflow posts talking about this issue but in reverse (app compiles for physical device but not for simulator). Does anyone know how to fix this?

Edit: Running lipo -info /Users/bentran/Library/Developer/Xcode/DerivedData/Nervy-ggvazspfamkfqmgbpaglrqonunrk/Build/Products/Debug-iphoneos/UXCam.framework/UXCam

Produces: Architectures in the fat file: /Users/bentran/Library/Developer/Xcode/DerivedData/Nervy-ggvazspfamkfqmgbpaglrqonunrk/Build/Products/Debug-iphoneos/UXCam.framework/UXCam are: arm64 x86_64 i386

Upvotes: 0

Views: 288

Answers (1)

Thomas Point
Thomas Point

Reputation: 21

I was facing the same problem. Updating the react-native-ux-cam package to version 5.3.1, then updating the pods solved it.

Upvotes: 1

Related Questions