The problem
When I run react-native in Simulator it works fine. I am now trying to run it on my iPhone directly connected to my MacBook but issues are coming up. There are several warnings that say the Deployment Target is set to 7.0
.
Where exactly is this being set? IS it being set in the libraries that I am using? How do I get around this?
Similar information I have found that do not seem to be duplicates of this issue include:
- People having issues with the simulator (the simulator is working fine for me)
- Suggestions for people to use the Legacy Build system in XCode (which others are saying is not a good idea).
So, what exactly is causing this issue and what do I do to fix it so that I can run the app on my physical iPhone device?
The error messages:
ThePrompt$ react-native run-ios --device "Fred’s iPhone"
warn The following packages use deprecated "rnpm" config that will stop working from next release:
- react-native-zip-archive: https://github.com/mockingbot/react-native-zip-archive
- rn-fetch-blob: https://npmjs.com/package/rn-fetch-blob Please notify their maintainers about it. You can find more details at https://github.com/react-native-community/cli/blob/master/docs/configuration.md#migration-guide.
info Found Xcode workspace "TestAppApp07.xcworkspace"
info Building (using "xcodebuild -workspace TestAppApp07.xcworkspace -configuration Debug -scheme TestAppApp07 -destination id=1e8ce3b4030eadba1161bda6bc1109b1e215f1ca -derivedDataPath build/TestAppApp07")
.......................
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 TestAppApp07.xcworkspace. Run CLI with
--verbose flag for more details.
User defaults from command line:
IDEDerivedDataPathOverride = /opt/TestAppApp07/ios/build/TestAppApp07
note: Using new build system
note: Planning build
note: Constructing build description
Build system information
error: Signing for "TestAppApp07Tests" requires a development team. Select a development team in the project editor. (in target 'TestAppApp07Tests')
Build system information
error: Signing for "TestAppApp07" requires a development team. Select a development team in the project editor. (in target 'TestAppApp07')
Build system information
warning: The iOS deployment target is set to
7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.4.99. (in target 'RNFS')
Build system information
warning: The iOS deployment target is set to
7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.4.99. (in target 'RNGestureHandler')
Build system information
warning: The iOS deployment target is set to
7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.4.99. (in target 'RNScreens')
Build system information
warning: The iOS deployment target is set to
7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.4.99. (in target 'RNSound')
2019-08-15 00:01:44.888 xcodebuild[36925:1330679] DTDeviceKit: deviceType from 1e8ce3b4030eadba1161bda8ac1109b1e215f1us was NULL
2019-08-15 00:01:44.927 xcodebuild[36925:1330675] DTDeviceKit: deviceType from 1e8ce3b4030eadba1161bda8ac1109b1e215f1us was NULL
** BUILD FAILED **
The issue?
It seems that React Native is only supporting a deployment target of 7.0. However, the newer version of XCode no longer has 7.0 as a target option. The lowest target in new versions of XCode is 8.0.
Legacy Build?
Some of the issues I see say I can use Legacy Build instead. However, I am wondering if this is will cause any other issues.