Xcode Cloud build from Flutter project unable to find included file 'Generated.xcconfig' in search paths

2.6k Views Asked by At

I have no problem building ios project the traditional way, but when trying to build with Xcode Cloud it seems that there is some trouble in finding specific paths. I'm importing the build from the repository, is there a possibility that pod files don't get installed, or does Flutter projects need some additional tweaking that I am missing.

enter image description here

3

There are 3 best solutions below

0
On BEST ANSWER

You should add post-clone script.

See https://docs.flutter.dev/deployment/cd#xcode-cloud.

0
On

I solved my problem changing the installation of Pods adding this line to ci_post_clone.sh:

I changed: cd ios && pod install

To: $CI_WORKSPACE/repository_name/ios && pod install

You have to know that path needs to be exactly.

1
On

The command that generates Generated.xcconfig for me is flutter pub get. Make sure that command runs and it succeeds. My problem was that it was silently failing (as part of ci_post_clone.sh) even though it did log the error "Expected to find project root in current working directory."