Post Clone CocoaPods Dependencies failing on Xcode Cloud

Hello -

My project uses CocoaPods so I was happy to see the support in the docs - However, I cannot install CocoaPods with the ci_post_clone.sh script, following the example in the docs ...

#!/bin/sh

# Install CocoaPods using Homebrew.
brew install cocoapods
		
# Install dependencies you manage with CocoaPods.
pod install

Resulting error is ...

2021-07-02T05:55:06.436073Z	ERROR:  Error installing cocoapods-1.10.1.gem:
2021-07-02T05:55:06.436460Z		ERROR: Failed to build gem native extension.
2021-07-02T05:55:06.436635Z	
2021-07-02T05:55:06.437286Z	    current directory: /Users/local/Homebrew/Cellar/cocoapods/1.10.1_1/libexec/gems/ffi-1.15.3/ext/ffi_c
2021-07-02T05:55:06.437609Z	/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r ./siteconf20210701-87609-15s4rbx.rb extconf.rb
2021-07-02T05:55:06.437754Z	*** extconf.rb failed ***
2021-07-02T05:55:06.438075Z	Could not create Makefile due to some reason, probably lack of necessary
2021-07-02T05:55:06.438198Z	libraries and/or headers.  Check the mkmf.log file for more details.  You may
2021-07-02T05:55:06.438509Z	need configuration options.

Also - there seems to be no way to get the build logs from the environment - and they are not includ with environment. You cannot cat them in the script, since it seems as soon as the brew build fails, the file is erased. For example, the following log is accessible with a cat of the file name.

2021-07-02T05:55:06.448577Z	To see why this extension failed to compile, please check the mkmf.log which can be found here:
2021-07-02T05:55:06.448981Z	
2021-07-02T05:55:06.449412Z	  /Users/local/Homebrew/Cellar/cocoapods/1.10.1_1/libexec/extensions/universal-darwin-20/2.6.0/ffi-1.15.3/mkmf.log

Thanks.

Replies

Update: I have tried a whole lot of things ... without any success.

Even took the route of trying to install RVM and libffi directly

Could you please use Feedback Assistant to report this? Please post the FB number here so I can follow up on it.

Submitted - FB9312664

  • Thank you!

Add a Comment

Update: After the official release of Xcode 13.0, my builds are working.