-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RNMobile] Upgrade CI to use Xcode 12 #26283
Conversation
Size Change: 0 B Total Size: 1.2 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When running the e2e tests locally I get:
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 GutenbergDemo.xcworkspace. Run CLI with --verbose flag for more details.
Which could be issue #25882, but which was fixed in PR #26062 (and worked for me previously with this fix).
I tried running npm run postinstall
as suggested in the above mentioned PR, but same result.
Then I switched back to the master
branch and saw the same issue there as well when running npm run native test:e2e:ios:local
. Notably, running npm run native ios
on master
succeeded, but didn't fire up the packager as it used to (running npm run native start
in one window and npm run native ios
in another window worked, and it's how I've been running Gutenberg for the last few months.
I tried:
- Deleting
~/.cocoapods
andcd packages/react-native-editor/ios && bundle exec pod install
cd packages/react-native-editor/ios && rm -rf Pods
, deleted Xcode derived data, and rerannpm run native test:e2e:ios:local
in the Gutenberg root folder
No luck. So I'll have to come back tomorrow for some more digging, but feel free to add another dev here to get a second look at this PR since this looks to be an issue with my machine, not this PR.
I think I reproduced the issue you were having. Was it maybe this one:
Strange that this happens only when using the I updated the scripts to use For the metro server not launching on build: The |
I don't see that message in the output of
I see — I've been running the packager separately anyway, but good to know the reason why this changed. I'm upgrading from Xcode 12.0 to Xcode 12.1 to see if that fixes the issue I'm having, since I'm still getting the same from #26283 (review) when using the latest commit from this branch. |
@guarani Can you maybe share more details about the error, maybe the full output if that's possible? @etoledom Can you please give this a try on your machine to see if you're having issues too? |
My first try with Second try:
And Build Success! 🎉 Third try:
One thing, after doing the second try, I got a huge diff on
|
Thanks for checking @etoledom, awesome that it worked 🎉
I couldn't reproduce this. I have node v12.19.0 and npm 6.14.8. There's a gutenberg-mobile PR too: wordpress-mobile/gutenberg-mobile#2744 and there the CI didn't find any issues with package-lock.json changes as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Local E2E tests are ✅ on my machine and CI seems to be happy too 🎉
Nice job @ceyhun 🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It worked after following the tips from #26283 (comment) (I guess my mistake was only removing the Pods folder instead of git clean -fdx
to remove all untracked files).
Still on Xcode 12.0 (not 12.1), all tests passed locally! 🎆
That's great, thanks @guarani 🎉 Can you please check the gb-mobile PR too: wordpress-mobile/gutenberg-mobile#2744 and if there aren't any errors, I'll go ahead and merge these two! |
Merging this despite failing |
Description
Fixes #26188
How has this been tested?
sudo xcode-select --switch /Applications/Xcode_12_path.app
npm run native test:e2e:ios:local