crossplatformkorea / react-native-kakao-login

react-native native module for Kakao sign in.
MIT License
350 stars 133 forks source link

xcode에서 빌드하면 " Undefined symbols for architecture x86_64: ... " , " ld: symbol(s) not found for architecture x86_64 " 이러한 에러가 뜹니다. #236

Closed lets-gojae closed 3 years ago

lets-gojae commented 3 years ago

Version of kakao-login libraries

3.3.2

Version of react-native

"0.64.1",

Platforms you faced the error (IOS or Android or both?)

ios

xcode에서 빌드하면 아래와 같은 에러 문구가 나옵니다.

Ld /Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/GohMovie.app/GohMovie normal (in target 'GohMovie' from project 'GohMovie') cd /Users/letsgojae/Desktop/ReactNativeFirstApp/GohMovie/ios /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target x86_64-apple-ios14.5-simulator -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator -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-5.0/iphonesimulator -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/Alamofire -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/CocoaAsyncSocket -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/DoubleConversion -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/FBReactNativeSpec -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/Flipper -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/Flipper-DoubleConversion -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/Flipper-Folly -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/Flipper-Glog -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/Flipper-PeerTalk -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/Flipper-RSocket -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/FlipperKit -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/KakaoSDKAuth -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/KakaoSDKCommon -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/KakaoSDKLink -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/KakaoSDKNavi -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/KakaoSDKStory -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/KakaoSDKTalk -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/KakaoSDKTemplate -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/KakaoSDKUser -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/RCT-Folly -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/RCTTypeSafety -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/RNCAsyncStorage -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/RNCMaskedView -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/RNGestureHandler -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/RNReanimated -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/RNScreens -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/React-Core -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/React-CoreModules -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/React-RCTAnimation -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/React-RCTBlob -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/React-RCTImage -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/React-RCTLinking -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/React-RCTNetwork -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/React-RCTSettings -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/React-RCTText -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/React-RCTVibration -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/React-cxxreact -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/React-jsi -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/React-jsiexecutor -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/React-jsinspector -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/React-perflogger -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/ReactCommon -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/Yoga -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/YogaKit -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/glog -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/kakao-login -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/libevent -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/react-native-safe-area-context -L/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/react-native-splash-screen -F/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator -F/Users/letsgojae/Desktop/ReactNativeFirstApp/GohMovie/ios/Pods/OpenSSL-Universal/Frameworks -F/Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/OpenSSL -filelist /Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Intermediates.noindex/GohMovie.build/Debug-iphonesimulator/GohMovie.build/Objects-normal/x86_64/GohMovie.LinkFileList -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Intermediates.noindex/GohMovie.build/Debug-iphonesimulator/GohMovie.build/Objects-normal/x86_64/GohMovie_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Intermediates.noindex/GohMovie.build/Debug-iphonesimulator/GohMovie.build/Objects-normal/x86_64/GohMovie.swiftmodule -ObjC -lAlamofire -lCocoaAsyncSocket -lDoubleConversion -lFBReactNativeSpec -lFlipper -lFlipper-DoubleConversion -lFlipper-Folly -lFlipper-Glog -lFlipper-PeerTalk -lFlipper-RSocket -lFlipperKit -lKakaoSDKAuth -lKakaoSDKCommon -lKakaoSDKLink -lKakaoSDKNavi -lKakaoSDKStory -lKakaoSDKTalk -lKakaoSDKTemplate -lKakaoSDKUser -lRCT-Folly -lRCTTypeSafety -lRNCAsyncStorage -lRNCMaskedView -lRNGestureHandler -lRNReanimated -lRNScreens -lReact-Core -lReact-CoreModules -lReact-RCTAnimation -lReact-RCTBlob -lReact-RCTImage -lReact-RCTLinking -lReact-RCTNetwork -lReact-RCTSettings -lReact-RCTText -lReact-RCTVibration -lReact-cxxreact -lReact-jsi -lReact-jsiexecutor -lReact-jsinspector -lReact-perflogger -lReactCommon -lYoga -lYogaKit -lglog -lkakao-login -llibevent -lreact-native-safe-area-context -lreact-native-splash-screen -lstdc++ -framework AudioToolbox -framework CFNetwork -framework JavaScriptCore -framework MobileCoreServices -framework OpenSSL -framework Security -framework UIKit -ObjC -lc++ -Xlinker -sectcreate -Xlinker TEXT -Xlinker entitlements -Xlinker /Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Intermediates.noindex/GohMovie.build/Debug-iphonesimulator/GohMovie.build/GohMovie.app-Simulated.xcent -lPods-GohMovie -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Intermediates.noindex/GohMovie.build/Debug-iphonesimulator/GohMovie.build/Objects-normal/x86_64/GohMovie_dependency_info.dat -o /Users/letsgojae/Library/Developer/Xcode/DerivedData/GohMovie-dzmqgucysabuszcilbpkjzyapohd/Build/Products/Debug-iphonesimulator/GohMovie.app/GohMovie

Undefined symbols for architecture x86_64: "Swift._ArrayBuffer._copyContents(initializing: Swift.UnsafeMutableBufferPointer) -> (Swift.IndexingIterator<Swift._ArrayBuffer>, Swift.Int)", referenced from: generic specialization <serialized, Swift._ArrayBuffer> of Swift._copyCollectionToContiguousArray(A) -> Swift.ContiguousArray<A.Element> in libAlamofire.a(NetworkReachabilityManager.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Expected behavior

xcode에서 빌드가 되지 않고 있습니다.

Actual behavior

xcode에서 빌드가 되지 않고 있습니다.

Tested environment (Emulator? Real Device?)

xcode simulator (iPhone 11)

lets-gojae commented 3 years ago

혹시 같은 문제있는 분은 아래 사이트에서 해결하면 되네요 https://velog.io/@hojin9622/Swift.ArrayBuffer.copyContents-%EC%97%90%EB%9F%AC-%ED%95%B4%EA%B2%B0