expo: bare workflow build fails after adding expo-facebook
π Bug Report
Environment
Expo CLI 3.4.1 environment info: System: OS: macOS 10.15.1 Shell: 5.7.1 - /bin/zsh Binaries: Node: 12.12.0 - /usr/local/bin/node Yarn: 1.19.1 - /usr/local/bin/yarn npm: 6.11.3 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman IDEs: Android Studio: 3.2 AI-181.5540.7.32.5014246 Xcode: 11.2/11B52 - /usr/bin/xcodebuild npmPackages: expo: ^35.0.0 => 35.0.1 react: 16.8.3 => 16.8.3 react-native: 0.59.10 => 0.59.10 npmGlobalPackages: expo-cli: 3.4.1
App target is iOS in bare workflow
Steps to Reproduce
- create a new expo app with
expo init myApp-->bare(starting with a managed app and then ejecting to a bare cause the same issue) - add expo-facebook (follow installation instructions here
- run app
Expected Behavior
app building and starting
Actual Behavior
app build fails with the following error
info warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.2.99. (in target 'RNScreens' from project 'Pods')
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening testfb.xcworkspace
** BUILD FAILED **
The following build commands failed:
CompileC /Users/jonathantafel/Developer/Projects/Priority\ Member/testfb2/ios/build/testfb/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKLoginKit.build/Objects-normal/x86_64/_FBSDKLoginRecoveryAttempter.o /Users/jonathantafel/Developer/Projects/Priority\ Member/testfb2/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/_FBSDKLoginRecoveryAttempter.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
. Run CLI with --verbose flag for more details.
I tried to fix the iOS Simulator deployment target issue adding this to the Podfile
post_install do |pi|
pi.pods_project.targets.each do |t|
t.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
end
end
end
but even tho I donβt get the target error I still get a similar one
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening testfb.xcworkspace
** BUILD FAILED **
The following build commands failed:
CompileC /Users/jonathantafel/Developer/Projects/Priority\ Member/testfb2/ios/build/testfb/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKLoginKit.build/Objects-normal/x86_64/_FBSDKLoginRecoveryAttempter.o /Users/jonathantafel/Developer/Projects/Priority\ Member/testfb2/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/_FBSDKLoginRecoveryAttempter.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
. Run CLI with --verbose flag for more details.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 18 (10 by maintainers)
Issue fixed in https://github.com/expo/expo/commit/5c9913eca88eef7beefa7d1a43cb5a38b37327b9, a hotfix for SDKs < 36 is: https://github.com/expo/expo/issues/6256#issuecomment-554748629.
Aye, thatβs the problem β try adding
to the
Podfileand runningpod install --repo-update. Then the Xcode project should build. πThe issue (too loose version requirement) has been fixed on
masterin https://github.com/expo/expo/commit/5c9913eca88eef7beefa7d1a43cb5a38b37327b9.