IOS真机模拟报错,Undefined symbols for architecture arm64



  • 新建的项目直接命令行启动,以及在xcode启动模拟器都可以正常执行,但是只要选择真机,就报错!

    React-fishhook/libReact-fishhook.a
    ld: warning: ignoring file /Users/skykingit/Documents/react/book/testProject/ios/build/testProject/Build/Products/Debug-iphonesimulator/React-jsi/libReact-jsi.a, file was built for archive which is not the architecture being linked (arm64): /Users/skykingit/Documents/react/book/testProject/ios/build/testProject/Build/Products/Debug-iphonesimulator/React-jsi/libReact-jsi.a
    ld: warning: ignoring file /Users/skykingit/Documents/react/book/testProject/ios/build/testProject/Build/Products/Debug-iphonesimulator/React-jsiexecutor/libReact-jsiexecutor.a, file was built for archive which is not the architecture being linked (arm64): /Users/skykingit/Documents/react/book/testProject/ios/build/testProject/Build/Products/Debug-iphonesimulator/React-jsiexecutor/libReact-jsiexecutor.a
    ld: warning: ignoring file /Users/skykingit/Documents/react/book/testProject/ios/build/testProject/Build/Products/Debug-iphonesimulator/React-jsinspector/libReact-jsinspector.a, file was built for archive which is not the architecture being linked (arm64): /Users/skykingit/Documents/react/book/testProject/ios/build/testProject/Build/Products/Debug-iphonesimulator/React-jsinspector/libReact-jsinspector.a
    ld: warning: ignoring file /Users/skykingit/Documents/react/book/testProject/ios/build/testProject/Build/Products/Debug-iphonesimulator/glog/libglog.a, file was built for archive which is not the architecture being linked (arm64): /Users/skykingit/Documents/react/book/testProject/ios/build/testProject/Build/Products/Debug-iphonesimulator/glog/libglog.a
    ld: warning: ignoring file /Users/skykingit/Documents/react/book/testProject/ios/build/testProject/Build/Products/Debug-iphonesimulator/yoga/libyoga.a, file was built for archive which is not the architecture being linked (arm64): /Users/skykingit/Documents/react/book/testProject/ios/build/testProject/Build/Products/Debug-iphonesimulator/yoga/libyoga.a
    ld: warning: ignoring file /Users/skykingit/Documents/react/book/testProject/ios/build/testProject/Build/Products/Debug-iphonesimulator/libPods-testProject.a, file was built for archive which is not the architecture being linked (arm64): /Users/skykingit/Documents/react/book/testProject/ios/build/testProject/Build/Products/Debug-iphonesimulator/libPods-testProject.a
    Undefined symbols for architecture arm64:
    "OBJC_CLASS$_RCTBridge", referenced from:
    objc-class-ref in AppDelegate.o
    "OBJC_CLASS$_RCTBundleURLProvider", referenced from:
    objc-class-ref in AppDelegate.o
    "OBJC_CLASS$_RCTRootView", referenced from:
    objc-class-ref in AppDelegate.o
    ld: symbol(s) not found for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)


Log in to reply