Flutter 3.3 build for iOS hanging in Teamcity

I have a flutter test project which is working with Flutter 2.5.3

Flutter 2.5.3 • channel unknown • unknown source 
Framework • revision 18116933e7 (1 year, 2 months ago) • 2021-10-15 10:46:35 -0700 
Engine • revision d3ea636dc5

Running "flutter pub get" in ....                                  51.3s

Downloading ios tools...                                          131.0s
Downloading ios-profile tools...                                  100.9s
Downloading ios-release tools...                                  530.8s

Archiving com.example.iOStestapp...
 
Automatically signing iOS for device deployment using specified development team in Xcode project: xxxxxxxx
Running pod install...                                             17.7s
Running Xcode build... 
Xcode archive done.                                         597.3s

Built flutter_test_plugin/testapp/build/ios/archive/Runner.xcarchive. 
💪 Building with sound null safety 💪
      
Process exited with code 0

Then I updated the project to Flutter 3.3. The build itself succeeds. But after it is done the build is hanging in Teamcity. There is no issue when I used the older flutter version. 

Flutter 3.3.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision ffccd96b62 (3 months ago) • 2022-08-29 17:28:57 -0700 
Engine • revision 5e9e0e0aa8
Tools • Dart 2.18.0 • DevTools 2.15.0

💪 Building with sound null safety 💪
Archiving com.example.iOStestapp...

Updating minimum iOS deployment target to 11.0. 
Upgrading project.pbxproj
Upgrading AppFrameworkInfo.plist
Upgrading Podfile

Automatically signing iOS for device deployment using specified development team in Xcode project: xxxxxxxx
 
Running pod install...                                             16.8s 
Running Xcode build...
Xcode archive done.                                         420.0s

Built flutter_test_plugin/testapp/build/ios/archive/Runner.xcarchive.
 
Building App Store IPA...                                          75.8s 
Built IPA to flutter_test_plugin/testapp/build/ios/ipa.

To upload to the App Store either:
   1. Drag and drop the "build/ios/ipa/*.ipa" bundle into the Apple Transport macOS app https://apps.apple.com/us/app/transporter/id1450874784
   2. Run "xcrun altool --upload-app --type ios -f build/ios/ipa/*.ipa --apiKey your_api_key --apiIssuer your_issuer_id".
             See "man altool" for details about how to authenticate with the App Store Connect API key.
 
Process exited with code 0


I use the following command to build the app in Teamcity.

flutter build ipa

 Locally it works without issues, it happens only when running in Teamcity. Seems the build process is waiting for something.

This is the ant script that I call in teamcity.

<target name="flutter-build-ios" depends="clean-flutter">
<exec dir="folder_name" executable="flutter" resultproperty="result" failonerror="true">
<arg line="build" />
<arg line="-v" />
<arg line="ipa" />
<arg line="--export-options-plist"/>
<arg line="folder_name/ios/ExportOptions.plist" />
</exec>

<echo message="Flutter build ipa is done status -> ${result}"/>

<fail message="Flutter build ipa failed.">
<condition>
<isfailure code="${result}"/>
</condition>
</fail>
</target>

Any hints on what is happening ?

The debug logs also is coming out

Flutter build ipa is done status -> 0

It doesn't go to the next build step and is hanging there eventhough the step is successfull

0
2 comments

Hi!

How do you call this ant script? If you could share details regarding the runner you are using and its configuration, it might be helpful to determine what is going on. A screenshot with any sensitive information omitted would be helpful. Also, please share the logs to our secure upload service and share the upload id back to us.

Thank you,

Guilherme

0

Guilherme Barbosa  I was able to fix it. It was an issue with the path variables that i was using.

0

Please sign in to leave a comment.