little-snow-fox / react-native-wechat-lib

🚀 WeChat login, share, favorite and payment for React-Native on iOS and Android
MIT License
651 stars 127 forks source link

- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url,ios启动报错 #214

Open XionGuo37 opened 1 year ago

XionGuo37 commented 1 year ago

Ld /Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/项目.app/项目 normal (in target '项目' from project '项目') cd /Users/用户/Documents/zhongran/项目/ios /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target arm64-apple-ios12.4-simulator -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/usr/lib/swift -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/CocoaAsyncSocket -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/DoubleConversion -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/Flipper -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/Flipper-Boost-iOSX -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/Flipper-Fmt -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/Flipper-Folly -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/Flipper-PeerTalk -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/Flipper-RSocket -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/FlipperKit -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/RCT-Folly -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/RCTTypeSafety -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/RCTWeChat -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/RNCAsyncStorage -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/RNCClipboard -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/RNCPicker -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/RNFS -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/RNGestureHandler -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/RNReanimated -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/RNSVG -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/RNScreens -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/React-Codegen -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/React-Core -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/React-CoreModules -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/React-RCTAnimation -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/React-RCTBlob -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/React-RCTImage -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/React-RCTLinking -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/React-RCTNetwork -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/React-RCTSettings -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/React-RCTText -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/React-RCTVibration -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/React-bridging -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/React-cxxreact -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/React-hermes -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/React-jsi -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/React-jsiexecutor -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/React-jsinspector -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/React-logger -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/React-perflogger -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/ReactCommon -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/SocketRocket -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/VisionCamera -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/Yoga -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/YogaKit -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/fmt -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/glog -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/libevent -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/react-native-cameraroll -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/react-native-date-picker -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/react-native-location -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/react-native-pager-view -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/react-native-safe-area-context -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/react-native-segmented-control -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/react-native-slider -L/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/react-native-webview -L/Users/用户/Documents/zhongran/项目/ios/Pods/../../node_modules/react-native-wechat-lib/ios -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/usr/lib/swift -F/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator -F/Users/用户/Documents/zhongran/项目/ios/Pods/Flipper-DoubleConversion/Frameworks -F/Users/用户/Documents/zhongran/项目/ios/Pods/Flipper-Glog/Frameworks -F/Users/用户/Documents/zhongran/项目/ios/Pods/OpenSSL-Universal/Frameworks -F/Users/用户/Documents/zhongran/项目/ios/Pods/hermes-engine/destroot/Library/Frameworks/universal -F/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/Flipper-DoubleConversion -F/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/Flipper-Glog -F/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/OpenSSL-Universal -F/Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/hermes-engine -filelist /Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Intermediates.noindex/项目.build/Debug-iphonesimulator/项目.build/Objects-normal/arm64/项目.LinkFileList -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Intermediates.noindex/项目.build/Debug-iphonesimulator/项目.build/Objects-normal/arm64/项目_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -lCocoaAsyncSocket -lDoubleConversion -lFlipper -lFlipper-Boost-iOSX -lFlipper-Fmt -lFlipper-Folly -lFlipper-PeerTalk -lFlipper-RSocket -lFlipperKit -lRCT-Folly -lRCTTypeSafety -lRCTWeChat -lRNCAsyncStorage -lRNCClipboard -lRNCPicker -lRNFS -lRNGestureHandler -lRNReanimated -lRNSVG -lRNScreens -lReact-Codegen -lReact-Core -lReact-CoreModules -lReact-RCTAnimation -lReact-RCTBlob -lReact-RCTImage -lReact-RCTLinking -lReact-RCTNetwork -lReact-RCTSettings -lReact-RCTText -lReact-RCTVibration -lReact-bridging -lReact-cxxreact -lReact-hermes -lReact-jsi -lReact-jsiexecutor -lReact-jsinspector -lReact-logger -lReact-perflogger -lReactCommon -lSocketRocket -lVisionCamera -lWeChatSDK -lYoga -lYogaKit -lc++ -lc++abi -lfmt -lglog -licucore -llibevent -lreact-native-cameraroll -lreact-native-date-picker -lreact-native-location -lreact-native-pager-view -lreact-native-safe-area-context -lreact-native-segmented-control -lreact-native-slider -lreact-native-webview -lsqlite3 -lstdc++ -lz -framework AudioToolbox -framework CFNetwork -framework CoreLocation -framework CoreTelephony -framework JavaScriptCore -framework MobileCoreServices -framework OpenSSL -framework Security -framework SystemConfiguration -framework UIKit -framework WebKit -framework double-conversion -framework glog -framework hermes -ObjC -lc++ -Xlinker -sectcreate -Xlinker TEXT -Xlinker entitlements -Xlinker /Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Intermediates.noindex/项目.build/Debug-iphonesimulator/项目.build/项目.app-Simulated.xcent -framework WebKit -lz -lc++ -lsqlite3.0 -framework CoreTelephony -framework SystemConfiguration -framework CoreLocation -lreact-native-cameraroll -lPods-项目 -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Intermediates.noindex/项目.build/Debug-iphonesimulator/项目.build/Objects-normal/arm64/项目_dependency_info.dat -o /Users/用户/Library/Developer/Xcode/DerivedData/项目-cyhrbpycwstuqcaezlgkdbinfiwf/Build/Products/Debug-iphonesimulator/项目.app/项目 ld: in /Users/用户/Documents/zhongran/项目/node_modules/react-native-wechat-lib/ios/libWeChatSDK.a(WechatAuthSDK.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/用户/Documents/zhongran/项目/node_modules/react-native-wechat-lib/ios/libWeChatSDK.a' for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

相关版本 "react": "18.1.0", "react-native": "0.70.6", "react-native-wechat-lib": "^1.1.26",

image

devoutDisciple commented 1 year ago

在AppDelegate.h中加入

import <React/RCTLinkingManager.h>

我的是这样好的