I created a simple react native project using expo init.
Ejected it and selected ExpoKit.
As soon I do pod install I got this error.
[!] No podspec found for EXBarCodeScannerInterface
in ../node_modules/expo-barcode-scanner-interface/ios
Googled around someone said to just to comment out these, so I commented like 7-8 of such lines of podspecs from the pod file.
Now once that error is gone I am getting this error.
[!] Unable to find a specification for UMCore
depended upon by EXAdsAdMob
If I comment out EXAdsAdMob I get the same error on EXAdsFacebook and so on.
On Android, I use Android studio to run the ejected file and get the following error.
/android/enabled-modules does not exist.
Below is my package.json and after that my podfile
package.json
{
âmainâ: ânode_modules/expo/AppEntry.jsâ,
âscriptsâ: {
âstartâ: âexpo startâ,
âandroidâ: âexpo start --androidâ,
âiosâ: âexpo start --iosâ,
âwebâ: âexpo start --webâ,
âejectâ: âexpo ejectâ
},
âdependenciesâ: {
âexpoâ: â^33.0.0â,
âexpo-coreâ: â1.0.1â,
âexpokitâ: â33.0.4â,
âreactâ: â16.8.3â,
âreact-domâ: â^16.8.6â,
âreact-nativeâ: âhttps://github.com/expo/react-native/archive/sdk-33.0.0.tar.gzâ,
âreact-native-unimodulesâ: â^0.4.1â,
âreact-native-webâ: â^0.11.4â
},
âdevDependenciesâ: {
âbabel-preset-expoâ: â^5.1.1â
},
âprivateâ: true
}
PodFile
source âGitHub - CocoaPods/Specs: The CocoaPods Master Repoâ
platform :ios, â10.0â
target âdemo-stripe-projectâ do
pod âExpoKitâ,
:git => âREMOVED_LINKâ,
:tag => âios/2.11.0â,
:subspecs => [
âCoreâ
],
:inhibit_warnings => true
pod âEXAdsAdMobâ,
:path => ââŚ/node_modules/expo-ads-admob/iosâ
pod âEXAdsFacebookâ,
:path => ââŚ/node_modules/expo-ads-facebook/iosâ
pod âEXAmplitudeâ,
:path => ââŚ/node_modules/expo-analytics-amplitude/iosâ
pod âEXSegmentâ,
:path => ââŚ/node_modules/expo-analytics-segment/iosâ
pod âEXAppAuthâ,
:path => ââŚ/node_modules/expo-app-auth/iosâ
pod âEXAppLoaderProviderâ,
:path => ââŚ/node_modules/expo-app-loader-provider/iosâ
pod âEXAVâ,
:path => ââŚ/node_modules/expo-av/iosâ
pod âEXBackgroundFetchâ,
:path => ââŚ/node_modules/expo-background-fetch/iosâ
pod âEXBarCodeScannerâ,
:path => ââŚ/node_modules/expo-barcode-scanner/iosâ
pod âEXBarCodeScannerInterfaceâ,
:path => ââŚ/node_modules/expo-barcode-scanner-interface/iosâ
pod âEXBlurâ,
:path => ââŚ/node_modules/expo-blur/iosâ
pod âEXBrightnessâ,
:path => ââŚ/node_modules/expo-brightness/iosâ
pod âEXCalendarâ,
:path => ââŚ/node_modules/expo-calendar/iosâ
pod âEXCameraâ,
:path => ââŚ/node_modules/expo-camera/iosâ
pod âEXCameraInterfaceâ,
:path => ââŚ/node_modules/expo-camera-interface/iosâ
pod âEXConstantsâ,
:path => ââŚ/node_modules/expo-constants/iosâ
pod âEXConstantsInterfaceâ,
:path => ââŚ/node_modules/expo-constants-interface/iosâ
pod âEXContactsâ,
:path => ââŚ/node_modules/expo-contacts/iosâ
pod âEXCoreâ,
:path => ââŚ/node_modules/expo-core/iosâ
pod âEXCryptoâ,
:path => ââŚ/node_modules/expo-crypto/iosâ
pod âEXDocumentPickerâ,
:path => ââŚ/node_modules/expo-document-picker/iosâ
pod âEXErrorsâ,
:path => ââŚ/node_modules/expo-errors/iosâ
pod âEXFacebookâ,
:path => ââŚ/node_modules/expo-facebook/iosâ
pod âEXFaceDetectorInterfaceâ,
:path => ââŚ/node_modules/expo-face-detector-interface/iosâ
pod âEXFacebookâ,
:path => ââŚ/node_modules/expo-facebook/iosâ
pod âEXFileSystemâ,
:path => ââŚ/node_modules/expo-file-system/iosâ
pod âEXFileSystemInterfaceâ,
:path => ââŚ/node_modules/expo-file-system-interface/iosâ
pod âEXFontâ,
:path => ââŚ/node_modules/expo-font/iosâ
pod âEXFontInterfaceâ,
:path => ââŚ/node_modules/expo-font-interface/iosâ
pod âEXGLâ,
:path => ââŚ/node_modules/expo-gl/iosâ
pod âEXGL-CPPâ,
:path => ââŚ/node_modules/expo-gl-cpp/cppâ
pod âEXGoogleSignInâ,
:path => ââŚ/node_modules/expo-google-sign-in/iosâ
pod âEXHapticsâ,
:path => ââŚ/node_modules/expo-haptics/iosâ
pod âEXImageLoaderInterfaceâ,
:path => ââŚ/node_modules/expo-image-loader-interface/iosâ
pod âEXImageManipulatorâ,
:path => ââŚ/node_modules/expo-image-manipulator/iosâ
pod âEXImagePickerâ,
:path => ââŚ/node_modules/expo-image-picker/iosâ
pod âEXKeepAwakeâ,
:path => ââŚ/node_modules/expo-keep-awake/iosâ
pod âEXLinearGradientâ,
:path => ââŚ/node_modules/expo-linear-gradient/iosâ
pod âEXLocalAuthenticationâ,
:path => ââŚ/node_modules/expo-local-authentication/iosâ
pod âEXLocalizationâ,
:path => ââŚ/node_modules/expo-localization/iosâ
pod âEXLocationâ,
:path => ââŚ/node_modules/expo-location/iosâ
pod âEXMailComposerâ,
:path => ââŚ/node_modules/expo-mail-composer/iosâ
pod âEXMediaLibraryâ,
:path => ââŚ/node_modules/expo-media-library/iosâ
pod âEXPermissionsâ,
:path => ââŚ/node_modules/expo-permissions/iosâ
pod âEXPermissionsInterfaceâ,
:path => ââŚ/node_modules/expo-permissions-interface/iosâ
pod âEXPrintâ,
:path => ââŚ/node_modules/expo-print/iosâ
pod âEXRandomâ,
:path => ââŚ/node_modules/expo-random/iosâ
pod âEXReactNativeAdapterâ,
:path => ââŚ/node_modules/expo-react-native-adapter/iosâ
pod âEXSecureStoreâ,
:path => ââŚ/node_modules/expo-secure-store/iosâ
pod âEXSensorsâ,
:path => ââŚ/node_modules/expo-sensors/iosâ
pod âEXSensorsInterfaceâ,
:path => ââŚ/node_modules/expo-sensors-interface/iosâ
pod âEXSMSâ,
:path => ââŚ/node_modules/expo-sms/iosâ
pod âEXSpeechâ,
:path => ââŚ/node_modules/expo-speech/iosâ
pod âEXSQLiteâ,
:path => ââŚ/node_modules/expo-sqlite/iosâ
pod âEXTaskManagerâ,
:path => ââŚ/node_modules/expo-task-manager/iosâ
pod âEXTaskManagerInterfaceâ,
:path => ââŚ/node_modules/expo-task-manager-interface/iosâ
pod âEXWebBrowserâ,
:path => ââŚ/node_modules/expo-web-browser/iosâ
pod âReactâ,
:path => ââŚ/node_modules/react-nativeâ,
:inhibit_warnings => true,
:subspecs => [
âCoreâ,
âARTâ,
âRCTActionSheetâ,
âRCTAnimationâ,
âRCTCameraRollâ,
âRCTGeolocationâ,
âRCTImageâ,
âRCTNetworkâ,
âRCTTextâ,
âRCTVibrationâ,
âRCTWebSocketâ,
âDevSupportâ,
âCxxBridgeâ
]
pod âyogaâ,
:path => ââŚ/node_modules/react-native/ReactCommon/yogaâ,
:inhibit_warnings => true
pod âDoubleConversionâ,
:podspec => ââŚ/node_modules/react-native/third-party-podspecs/DoubleConversion.podspecâ,
:inhibit_warnings => true
pod âFollyâ,
:podspec => ââŚ/node_modules/react-native/third-party-podspecs/Folly.podspecâ,
:inhibit_warnings => true
pod âglogâ,
:podspec => ââŚ/node_modules/react-native/third-party-podspecs/glog.podspecâ,
:inhibit_warnings => true
post_install do |installer|
installer.pods_project.main_group.tab_width = â2â;
installer.pods_project.main_group.indent_width = â2â;
installer.target_installation_results.pod_target_installation_results
.each do |pod_name, target_installation_result|
if target.pod_name == 'ExpoKit'
target.native_target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)']
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'EX_DETACHED=1'
# needed for GoogleMaps 2.x
config.build_settings['FRAMEWORK_SEARCH_PATHS'] ||= []
config.build_settings['FRAMEWORK_SEARCH_PATHS'] << '${PODS_ROOT}/GoogleMaps/Base/Frameworks'
config.build_settings['FRAMEWORK_SEARCH_PATHS'] << '${PODS_ROOT}/GoogleMaps/Maps/Frameworks'
end
end
if ['Amplitude-iOS','Analytics','AppAuth','Branch','CocoaLumberjack','FBSDKCoreKit','FBSDKLoginKit','FBSDKShareKit','GPUImage','JKBigInteger2'].include? target.pod_name
target.native_target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0'
end
end
# Can't specify this in the React podspec because we need
# to use those podspecs for detached projects which don't reference ExponentCPP.
if target.pod_name.start_with?('React')
target.native_target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0'
config.build_settings['HEADER_SEARCH_PATHS'] ||= ['$(inherited)']
end
end
# Build React Native with RCT_DEV enabled and RCT_ENABLE_INSPECTOR and
# RCT_ENABLE_PACKAGER_CONNECTION disabled
next unless target.pod_name == 'React'
target.native_target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)']
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'RCT_DEV=1'
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'RCT_ENABLE_INSPECTOR=0'
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'ENABLE_PACKAGER_CONNECTION=0'
end
end
end
end