react-native-google-place-picker
react-native-google-place-picker copied to clipboard
Problem Installing library in iOS
I am trying to make the library work for my project (react-native == 0.49.0). I followed the guide and I am getting following error while building the project.
In file included from /Users/myusername/Documents/react-native/myrnproject/node_modules/react-native-google-place-picker/ios/RNGooglePlacePicker.m:2:
In file included from ../../react-native/React/Base/RCTEventDispatcher.h:12:
In file included from /Users/myusername/Documents/react-native/myrnproject/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTBridge.h:13:
/Users/myusername/Documents/react-native/myrnproject/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTBridgeModule.h:54:16: error: redefinition of 'RCTMethodInfo'
typedef struct RCTMethodInfo {
^
In file included from /Users/myusername/Documents/react-native/myrnproject/node_modules/react-native-google-place-picker/ios/RNGooglePlacePicker.m:1:
In file included from /Users/myusername/Documents/react-native/myrnproject/node_modules/react-native-google-place-picker/ios/RNGooglePlacePicker.h:1:
../../react-native/React/Base/RCTBridgeModule.h:54:16: note: previous definition is here
typedef struct RCTMethodInfo {
^
In file included from /Users/myusername/Documents/react-native/myrnproject/node_modules/react-native-google-place-picker/ios/RNGooglePlacePicker.m:2:
In file included from ../../react-native/React/Base/RCTEventDispatcher.h:12:
In file included from /Users/myusername/Documents/react-native/myrnproject/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTBridge.h:13:
/Users/myusername/Documents/react-native/myrnproject/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTBridgeModule.h:58:3: error: typedef redefinition with different types ('struct (anonymous struct at /Users/myusername/Documents/react-native/myrnproject/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTBridgeModule.h:54:16)' vs 'struct RCTMethodInfo')
} RCTMethodInfo;
^
In file included from /Users/myusername/Documents/react-native/myrnproject/node_modules/react-native-google-place-picker/ios/RNGooglePlacePicker.m:1:
In file included from /Users/myusername/Documents/react-native/myrnproject/node_modules/react-native-google-place-picker/ios/RNGooglePlacePicker.h:1:
../../react-native/React/Base/RCTBridgeModule.h:58:3: note: previous definition is here
} RCTMethodInfo;
^
In file included from /Users/myusername/Documents/react-native/myrnproject/node_modules/react-native-google-place-picker/ios/RNGooglePlacePicker.m:2:
In file included from ../../react-native/React/Base/RCTEventDispatcher.h:12:
In file included from /Users/myusername/Documents/react-native/myrnproject/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTBridge.h:13:
/Users/myusername/Documents/react-native/myrnproject/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTBridgeModule.h:65:11: warning: duplicate protocol definition of 'RCTBridgeModule' is ignored [-Wduplicate-protocol]
@protocol RCTBridgeModule <NSObject>
^
In file included from /Users/myusername/Documents/react-native/myrnproject/node_modules/react-native-google-place-picker/ios/RNGooglePlacePicker.m:1:
In file included from /Users/myusername/Documents/react-native/myrnproject/node_modules/react-native-google-place-picker/ios/RNGooglePlacePicker.h:1:
../../react-native/React/Base/RCTBridgeModule.h:65:11: note: previous definition is here
@protocol RCTBridgeModule <NSObject>
^
1 warning and 2 errors generated.
** BUILD FAILED **
The following build commands failed:
CompileC /Users/myusername/Documents/react-native/myrnproject/ios/build/Build/Intermediates.noindex/RNGooglePlacePicker.build/Debug-iphonesimulator/RNGooglePlacePicker.build/Objects-normal/x86_64/RNGooglePlacePicker.o RNGooglePlacePicker.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Ah you made a PR for that. Overlooked that. However, it seems that this is not yet in the normal npm release. Is there any plan on making a new release?
I've tried this. I get a whole set of new errors : these and more but they're all the same kind of error
Undefined symbols for architecture x86_64:
"_RCTExecuteOnMainQueue", referenced from:
-[RCTNativeAnimatedModule eventDispatcherWillDispatchEvent:] in libRCTAnimation.a(RCTNativeAnimatedModule.o)
-[RCTImageView imageLoaderLoadedImage:error:forImageSource:partial:] in libRCTImage.a(RCTImageView.o)
___68-[RCTImageView imageLoaderLoadedImage:error:forImageSource:partial:]_block_invoke.107 in libRCTImage.a(RCTImageView.o)
-[RCTLocalAssetImageLoader loadImageForURL:size:scale:resizeMode:progressHandler:partialLoadHandler:completionHandler:] in libRCTImage.a(RCTLocalAssetImageLoader.o)
-[RCTWebSocketExecutor executeBlockOnJavaScriptQueue:] in libRCTWebSocket.a(RCTWebSocketExecutor.o)
"_RCTFatal", referenced from:
-[RCTWebSocketExecutor setUp] in libRCTWebSocket.a(RCTWebSocketExecutor.o)
"_RCTGetUIManagerQueue", referenced from:
-[RCTNativeAnimatedModule methodQueue] in libRCTAnimation.a(RCTNativeAnimatedModule.o)
-[RNGestureHandlerModule methodQueue] in libRNGestureHandler.a(RNGestureHandlerModule.o)
"_RCTGzipData", referenced from:
___46-[RCTNetworking buildRequest:completionBlock:]_block_invoke.262 in libRCTNetwork.a(RCTNetworking.o)
"_RCTImageFromLocalAssetURL", referenced from:
___119-[RCTLocalAssetImageLoader loadImageForURL:size:scale:resizeMode:progressHandler:partialLoadHandler:completionHandler:]_block_invoke in libRCTImage.a(RCTLocalAssetImageLoader.o)
"_RCTIsBundleAssetURL", referenced from:
-[RCTFileRequestHandler canHandleRequest:] in libRCTNetwork.a(RCTFileRequestHandler.o)
"_RCTIsLocalAssetURL", referenced from:
-[RCTLocalAssetImageLoader canLoadImageURL:] in libRCTImage.a(RCTLocalAssetImageLoader.o)
"_RCTIsMainQueue", referenced from:
___118-[RCTImageLoader _loadImageOrDataWithURLRequest:size:scale:resizeMode:progressBlock:partialLoadBlock:completionBlock:]_block_invoke in libRCTImage.a(RCTImageLoader.o)
___80-[RCTImageLoader decodeImageData:size:scale:clipped:resizeMode:completionBlock:]_block_invoke_2 in libRCTImage.a(RCTImageLoader.o)
-[RCTImageStoreManager(Deprecated) storeImage:] in libRCTImage.a(RCTImageStoreManager.o)
-[RCTImageStoreManager(Deprecated) imageForTag:] in libRCTImage.a(RCTImageStoreManager.o)
"_RCTJSONClean", referenced from:
-[RCTSettingsManager constantsToExport] in libRCTSettings.a(RCTSettingsManager.o)
-[RCTSettingsManager userDefaultsDidChange:] in libRCTSettings.a(RCTSettingsManager.o)
"_RCTJSONParse", referenced from:
-[RCTWebSocketExecutor webSocket:didReceiveMessage:] in libRCTWebSocket.a(RCTWebSocketExecutor.o)
___58-[RCTWebSocketExecutor _executeJSCall:arguments:callback:]_block_invoke in libRCTWebSocket.a(RCTWebSocketExecutor.o)
"_RCTJSONStringify", referenced from:
___44-[RCTWebSocketExecutor sendMessage:onReply:]_block_invoke in libRCTWebSocket.a(RCTWebSocketExecutor.o)
"_RCTPresentedViewController", referenced from:
-[RCTActionSheetManager showActionSheetWithOptions:callback:] in libRCTActionSheet.a(RCTActionSheetManager.o)
-[RCTActionSheetManager showShareActionSheetWithOptions:failureCallback:successCallback:] in libRCTActionSheet.a(RCTActionSheetManager.o)
"_RCTRegisterModule", referenced from:
+[RCTBlobManager load] in libRCTBlob.a(RCTBlobManager.o)
+[RCTNativeAnimatedModule load] in libRCTAnimation.a(RCTNativeAnimatedModule.o)
+[RCTActionSheetManager load] in libRCTActionSheet.a(RCTActionSheetManager.o)
+[RCTLocationObserver load] in libRCTGeolocation.a(RCTLocationObserver.o)
+[RCTImageLoader load] in libRCTImage.a(RCTImageLoader.o)
+[RCTGIFImageDecoder load] in libRCTImage.a(RCTGIFImageDecoder.o)
+[RCTImageEditingManager load] in libRCTImage.a(RCTImageEditingManager.o)
...
"_RCTRoundPixelValue", referenced from:
___78-[RCTTextShadowView applyLayoutToChildren:viewsWithNewFrame:absolutePosition:]_block_invoke in libRCTText.a(RCTTextShadowView.o)
-[RCTTextShadowView updateStorage:toFitFrame:] in libRCTText.a(RCTTextShadowView.o)
"_RCTRunningInAppExtension", referenced from:
-[RCTActionSheetManager showActionSheetWithOptions:callback:] in libRCTActionSheet.a(RCTActionSheetManager.o)
-[RCTActionSheetManager showShareActionSheetWithOptions:failureCallback:successCallback:] in libRCTActionSheet.a(RCTActionSheetManager.o)
-[RCTLinkingManager canOpenURL:resolve:reject:] in libRCTLinking.a(RCTLinkingManager.o)
"_RCTScreenScale", referenced from:
___80-[RCTImageLoader decodeImageData:size:scale:clipped:resizeMode:completionBlock:]_block_invoke_3.315 in libRCTImage.a(RCTImageLoader.o)
-[RCTImageView imageSourceForSize:] in libRCTImage.a(RCTImageView.o)
-[RCTImageView reloadImage] in libRCTImage.a(RCTImageView.o)
-[RCTImageView reactSetFrame:] in libRCTImage.a(RCTImageView.o)
-[RNVectorIconsManager getImageForFont:withGlyph:withFontSize:withColor:callback:] in libRNVectorIcons.a(RNVectorIconsManager.o)
_RCTDecodeImageWithData in libRCTImage.a(RCTImageUtils.o)
"_RCTScreenSize", referenced from:
___80-[RCTImageLoader decodeImageData:size:scale:clipped:resizeMode:completionBlock:]_block_invoke_3.315 in libRCTImage.a(RCTImageLoader.o)
"_RCTSharedApplication", referenced from:
-[RCTLinkingManager openURL:resolve:reject:] in libRCTLinking.a(RCTLinkingManager.o)
-[RCTLinkingManager canOpenURL:resolve:reject:] in libRCTLinking.a(RCTLinkingManager.o)
"_RCTSizeInPixels", referenced from:
___80-[RCTImageLoader decodeImageData:size:scale:clipped:resizeMode:completionBlock:]_block_invoke_3.315 in libRCTImage.a(RCTImageLoader.o)
_RCTDecodeImageWithData in libRCTImage.a(RCTImageUtils.o)
"_RCTTextUpdateLagWarningThreshold", referenced from:
-[RCTMultilineTextInputView setText:] in libRCTText.a(RCTMultilineTextInputView.o)
-[RCTBaseTextInputView setSelection:] in libRCTText.a(RCTBaseTextInputView.o)
-[RCTSinglelineTextInputView setText:] in libRCTText.a(RCTSinglelineTextInputView.o)
"_RCTUIManagerWillUpdateViewsDueToContentSizeMultiplierChangeNotification", referenced from:
-[RCTRawTextShadowView init] in libRCTText.a(RCTRawTextShadowView.o)
-[RCTTextShadowView init] in libRCTText.a(RCTTextShadowView.o)
"_YGFloatIsUndefined", referenced from:
___78-[RCTTextShadowView applyLayoutToChildren:viewsWithNewFrame:absolutePosition:]_block_invoke in libRCTText.a(RCTTextShadowView.o)
-[RCTTextShadowView _attributedStringWithFontFamily:fontSize:fontWeight:fontStyle:letterSpacing:useBackgroundColor:foregroundColor:backgroundColor:opacity:] in libRCTText.a(RCTTextShadowView.o)
"_YGNodeGetContext", referenced from:
_RCTMeasure in libRCTText.a(RCTTextShadowView.o)
"_YGNodeMarkDirty", referenced from:
-[RCTTextShadowView contentSizeMultiplierDidChange:] in libRCTText.a(RCTTextShadowView.o)
-[RCTTextShadowView _attributedStringWithFontFamily:fontSize:fontWeight:fontStyle:letterSpacing:useBackgroundColor:foregroundColor:backgroundColor:opacity:] in libRCTText.a(RCTTextShadowView.o)
"_YGNodeSetMeasureFunc", referenced from:
-[RCTTextShadowView init] in libRCTText.a(RCTTextShadowView.o)
"_YGNodeStyleGetHeight", referenced from:
___78-[RCTTextShadowView applyLayoutToChildren:viewsWithNewFrame:absolutePosition:]_block_invoke in libRCTText.a(RCTTextShadowView.o)
-[RCTTextShadowView _attributedStringWithFontFamily:fontSize:fontWeight:fontStyle:letterSpacing:useBackgroundColor:foregroundColor:backgroundColor:opacity:] in libRCTText.a(RCTTextShadowView.o)
"_YGNodeStyleGetWidth", referenced from:
___78-[RCTTextShadowView applyLayoutToChildren:viewsWithNewFrame:absolutePosition:]_block_invoke in libRCTText.a(RCTTextShadowView.o)
-[RCTTextShadowView _attributedStringWithFontFamily:fontSize:fontWeight:fontStyle:letterSpacing:useBackgroundColor:foregroundColor:backgroundColor:opacity:] in libRCTText.a(RCTTextShadowView.o)
"__RCTAssertFormat", referenced from:
-[RCTNativeAnimatedNodesManager connectAnimatedNodes:c
hildTag:] in libRCTAnimation.a(RCTNativeAnimatedNodesManager.o)
-[RCTNativeAnimatedNodesManager disconnectAnimatedNodes:childTag:] in libRCTAnimation.a(RCTNativeAnimatedNodesManager.o)
-[RCTImageLoader imageURLLoaderForURL:] in libRCTImage.a(RCTImageLoader.o)
-[RCTImageLoader imageDataDecoderForData:] in libRCTImage.a(RCTImageLoader.o)
-[RCTImageStoreManager _storeImageData:] in libRCTImage.a(RCTImageStoreManager.o)
-[RCTImageStoreManager storeImageData:withBlock:] in libRCTImage.a(RCTImageStoreManager.o)
-[RCTImageStoreManager getImageDataForTag:withBlock:] in libRCTImage.a(RCTImageStoreManager.o)
...
"__RCTLogNativeInternal", referenced from:
-[RCTNativeAnimatedNodesManager createAnimatedNode:config:] in libRCTAnimation.a(RCTNativeAnimatedNodesManager.o)
-[RCTNativeAnimatedNodesManager restoreDefaultValues:] in libRCTAnimation.a(RCTNativeAnimatedNodesManager.o)
-[RCTNativeAnimatedNodesManager setAnimatedNodeValue:value:] in libRCTAnimation.a(RCTNativeAnimatedNodesManager.o)
-[RCTNativeAnimatedNodesManager setAnimatedNodeOffset:offset:] in libRCTAnimation.a(RCTNativeAnimatedNodesManager.o)
-[RCTNativeAnimatedNodesManager flattenAnimatedNodeOffset:] in libRCTAnimation.a(RCTNativeAnimatedNodesManager.o)
-[RCTNativeAnimatedNodesManager extractAnimatedNodeOffset:] in libRCTAnimation.a(RCTNativeAnimatedNodesManager.o)
-[RCTNativeAnimatedNodesManager startAnimatingNode:nodeTag:config:endCallback:] in libRCTAnimation.a(RCTNativeAnimatedNodesManager.o)
...
"__RCTNotImplementedException", referenced from:
-[RCTSpringAnimation init] in libRCTAnimation.a(RCTSpringAnimation.o)
-[RCTFrameAnimation init] in libRCTAnimation.a(RCTFrameAnimation.o)
-[RCTAnimatedNode init] in libRCTAnimation.a(RCTAnimatedNode.o)
-[RCTDecayAnimation init] in libRCTAnimation.a(RCTDecayAnimation.o)
-[RCTImageView init] in libRCTImage.a(RCTImageView.o)
-[RCTNetworkTask init] in libRCTNetwork.a(RCTNetworkTask.o)
-[RCTMultilineTextInputView initWithFrame:] in libRCTText.a(RCTMultilineTextInputView.o)
...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)