You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After installing @react-native-community/geolocation the iOS build started failing on a C++ compilation error.
Steps to reproduce
Follow the RN docs to create a new RN app with the New Architecture enabled on RN v0.71.4
Check that the app builds fine on iOS
Install @react-native-community/geolocation with yarn add @react-native-community/geolocationas per the README
Uninstall the app from the simulator
Open XCode, Select Product > Clean build folder
Run cd ios && RCT_NEW_ARCH_ENABLED=1 bundle exec pod install
Run npx react-native run-ios
Check the terminal output:
...tor/react-native-geolocation.build/Objects-normal/x86_64/RNCGeolocati[1940/1940]
/Users/xxxxxx/Desktop/projects/AwesomeProject/node_modules/@react-native-community/geolocation/ios/RNCGeolocation.mm:393:23: error: property 'sourceInformation' not found on object of type 'CLLocation *'
mocked = location.sourceInformation.isSimulatedBySoftware;
^
1 error generated
...
The following build commands failed:
CompileC /Users/xxxxxx/Library/Developer/Xcode/DerivedData/AwesomeProject-xxxxxx/Build/Intermediates.noindex/Pods.build/Debug
-iphonesimulator/react-native-geolocation.build/Objects-normal/x86_64/RNCGeolocation.o /Users/xxxxxx/Desktop/projects/AwesomeProject/node_modules/@react-native-community/geolocation/ios/RNCGeolocation.mm normal x86_64 objective-c++ com
.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-geolocation' from project 'Pods')
(1 failure)
Also tried clearing the pod cache and rebuilding from scratch, same result.
Run rm -rf ~/Library/Caches/CocoaPods && rm -rf ~/Library/Developer/Xcode/DerivedData/* && cd ios && rm -rf Pods && pod deintegrate && pod setup && RCT_NEW_ARCH_ENABLED=1 bundle exec pod install
Run npx react-native run-ios
Check the terminal output:
The following build commands failed:
CompileC /Users/xxxxxx/Library/Developer/Xcode/DerivedData/AwesomeProject-xxxxxx/Build/Intermediates.noindex/Pods.build/Debug
-iphonesimulator/react-native-geolocation.build/Objects-normal/x86_64/RNCGeolocation.o /Users/xxxxxx/Desktop/projects/AwesomeProject/node_modules/@react-native-community/geolocation/ios/RNCGeolocation.mm normal x86_64 objective-c++ com
.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-geolocation' from project 'Pods')
(1 failure)
The text was updated successfully, but these errors were encountered:
Environment
Platforms
iOS -
npx react-native run-ios
Versions
Description
After installing
@react-native-community/geolocation
the iOS build started failing on a C++ compilation error.Steps to reproduce
@react-native-community/geolocation
withyarn add @react-native-community/geolocation
as per the READMEcd ios && RCT_NEW_ARCH_ENABLED=1 bundle exec pod install
npx react-native run-ios
Also tried clearing the pod cache and rebuilding from scratch, same result.
rm -rf ~/Library/Caches/CocoaPods && rm -rf ~/Library/Developer/Xcode/DerivedData/* && cd ios && rm -rf Pods && pod deintegrate && pod setup && RCT_NEW_ARCH_ENABLED=1 bundle exec pod install
npx react-native run-ios
The text was updated successfully, but these errors were encountered: