Hi Guys, last night my mac upgraded to xcode 10 (I wish it hasn’t done it…). As a result, when I try to run my ExpoKit app in the ios (12) simulator, I get:
error: Multiple commands produce '/Users/**********/WebstormProjects/LetsJobItApp/react-native/ios/build/Build/Products/Debug-iphonesimulator/letsjobit.app':
1) Target 'letsjobit' has create directory command with output '/Users/**********/WebstormProjects/LetsJobItApp/react-native/ios/build/Build/Products/Debug-iphonesimulator/letsjobit.app'
2) That command depends on command in Target 'letsjobit': script phase “[CP] Copy Pods Resources”
Build system information
warning: The iOS Simulator deployment target is set to 7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.0. (in target 'BVLinearGradient')
Build system information
warning: The iOS Simulator deployment target is set to 7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.0. (in target 'Google-Maps-iOS-Utils')
Build system information
warning: no rule to process file '/Users/**********/WebstormProjects/LetsJobItApp/react-native/ios/Pods/ExpoKit/template-files/keys.json' of type 'text.json' for architecture 'x86_64' (in target 'ExpoKit')
Build system information
warning: ignoring duplicated output file: '/Users/*********/WebstormProjects/LetsJobItApp/react-native/ios/build/Build/Products/Debug-iphonesimulator/letsjobit.app' (in target 'letsjobit')
** BUILD FAILED **
I’m not familiar with these errors, however Xcode 10 introduces new build system which might affect some projects and if this is your case, then these two steps should solve your issues:
In Xcode, go to File → Project/Workspace settings.
Change the build system to Legacy Build system.
I’m curious if this will help, let me know the results
@cellis, oh man, I regret so much to have upgraded. But all I did was “try tonight” when my mac prompted to make updates - not even remember having done it explicitly… well, we’ll survive
@joaopiopedreira got it working with 9.4.1. But had to reinstall my pods or I would get the “FBNativeAd” error, perhaps installing pods with xcode 10 corrupted them?
This problem with multiple methods named setState: was fixed in this commit, so I hope you just need to upgrade your ExpoKit to the newer version. The first version that includes this commit is 2.7.0 so you would also need to upgrade your SDK to at least 29.