BRCAChallenge / BRCAMobile

0 stars 0 forks source link

Builds for iOS simulator but fails for real device, GoogleToolboxForMac missing #9

Closed rcurrie closed 7 years ago

rcurrie commented 7 years ago

Clean clone and simulator run works but building for a device fails at the linker. Appears that GoogleToolboxForMac library is missing but its present on disk. Writing in case anyone has seen this trying to build for device (I haven't built an iOS app in a few years and first with react native). Will continue to debug...

ld: warning: directory not found for option '-L/Users/rcurrie/Library/Developer/Xcode/DerivedData/BRCAMobile-bcgcivcnprqeapawzhkzjfnlxpxw/Build/Products/Debug-iphoneos/GoogleToolboxForMac' ld: warning: directory not found for option '-L/Users/rcurrie/Library/Developer/Xcode/DerivedData/BRCAMobile-bcgcivcnprqeapawzhkzjfnlxpxw/Build/Products/Debug-iphoneos/Protobuf' ld: warning: directory not found for option '-L/Users/rcurrie/Library/Developer/Xcode/DerivedData/BRCAMobile-bcgcivcnprqeapawzhkzjfnlxpxw/Build/Products/Debug-iphoneos/SimulatorRemoteNotifications' ld: warning: directory not found for option '-L/Users/rcurrie/Library/Developer/Xcode/DerivedData/BRCAMobile-bcgcivcnprqeapawzhkzjfnlxpxw/Build/Products/Debug-iphoneos/nanopb' ld: library not found for -lGoogleToolboxForMac clang: error: linker command failed with exit code 1 (use -v to see invocation)

rcurrie commented 7 years ago

When building for a device use BRCAMobile.xcworkspace instead of the standard react native osx project BRCAMobile.xcodeproj