Flutter Unity iOS build failing #1693
Replies: 2 comments 2 replies
-
Hi @jrussell111, first and foremost, I see that your team is on a paid plan which means that you have access to the private support channel through the chat widget in the UI, please contact our team through that widget next time for quicker responses. |
Beta Was this translation helpful? Give feedback.
-
This discussion is being closed due to no activity in the last 14 days. You can reopen the discussion at any time if needed. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If you are looking for help, please confirm the following...
Which mobile framework are you using?
Flutter (Dart)
Steps to reproduce
I've been trying to build Flutter with the Unity widget and have successfully built it on a local machine but when using codemagic it encounters an error. There's no iOS guide for this but I've followed the Android Flutter/Unity and the iOS Unity guides to create my yaml. Every step goes fine up until the "flutter build ipa" command step which gives the error posted in actual results.
My yaml uses mac_pro with the latest supported xcode 14.2 which I believe is required for Unity builds atm. I can post it in full if required and have provided my build ID. The only references I've found to the error is an old Unity forum post using a 2021 alpha build that was supposedly going to be fixed. It doesn't seem to be the same issue as they mentioned filepath spaces being the cause.
Expected results
Build successfully
Actual results
Running pod install... 23.0s
Running Xcode build...
Xcode archive done. 61.3s
Failed to build iOS app
Lexical or Preprocessor Issue (Xcode): 'pch-cpp.hpp' file not found
/Users/builder/clone/flutter_client/ios/UnityLibrary/Classes/Native/mscorlib__9.cpp:0:12
Encountered error while archiving for device.
Build failed :|
Step 11 script
Flutter build ipa
exited with status code 1Build id (optional)
646a8c201b52313a134469b0
Beta Was this translation helpful? Give feedback.
All reactions