iOS 11.3 XCode 9.3 (9E145) don't build #18638
I've updated XCode to 9.3 (9E145) and iPhone X to 11.3 and now my project isn't building. It doesn't work with iOS 11.2 simulator too. But it works with
Packages: (wanted => installed)
Steps to Reproduce
Update iDevice and Xcode then try to build.
Sometimes it's RCTImage, RCTImageCache, etc..
The text was updated successfully, but these errors were encountered:
This is my problem, too. I have xcode 9.2 and ios 11.3. I am too new at coding to know how to post an error message. Sorry.
This picture is the error message I receive.
This iPad Pro (9.7 inch)(Model A1674, A1675) is running iOS 11.3(15E216) which may not be supported by this version of Xcode."
I'm hoping to learn a work-around.
Same problem. I just updated Xcode to 9.3(9E145) and the same errors occur when I try to archive. Different part is building for simulator is fine, but only archive or building for generic iOS device have the problem.
Yes, problem appears only when trying to make Product -> Archive.
I have other error:
UPDATED SOLUTION (choose 1 from below)
after apply patch:
I work on a company product, I am then releasing the app so Ic an downgrade the Xcode to 9.2 and make a work around for it. But what about other developers at different location? They are gonna think I messed up the code as I am the one releasing the code. Also my company has policy to not upgrade the RN version from 0.44.3 to any higher version. This is gonna be hassle.
Yes it's risky to patch RN but it's a little safer if you create a patch script that's run in npm/yarn postinstall. That way, if you have to reinstall RN your patches will be automatically applied.
In package.json add:
The patch script and data are in my gist.
Note that I'm patching RN 0.33 so my patch file may not work on your version. Some of the changes are the same as mentioned above, some are different.
I'm still stuck on RN 0.33 because I still support iOS 7. And I can't downgrade to Xcode 9.2 because my test device is already on iOS 11.3 (I sent in the phone for a battery replacement and it came back with the upgrade).
With a clean react-native:
Then build with xcode, click on the little red dot, fix the error, and repeat till you've fixed all these casting errors. Then: