Skip to content
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

flutter build ipa> build success xcarchive, build fail ipa should be fail, but not. #35

Open
dfdgsdfg opened this issue Mar 20, 2024 · 2 comments
Labels
blocked bug Something isn't working

Comments

@dfdgsdfg
Copy link

During flutter build ipa, then xcarchive success, but ipa fail, nothing happened.
IMO, this is fail, so should be show the logs.

Fastlane Log

[13:07:48]: ---------------------------
[13:07:48]: --- Step: flutter_build ---
[13:07:48]: ---------------------------
[13:07:48]: Determined Flutter location as /Users/dev/flutter because 'flutter' executable in PATH is located there (current directory is /Users/dev/actions-runner-01/_work/us-app/us-app/apps/insight_app).
[13:07:48]: $ /Users/dev/flutter/bin/flutter build ipa --build-number 110235 --verbose --release --flavor dev --dart-define\=FLAVOR\=dev --no-tree-shake-icons --export-options-plist\=ios/Runner/ExportOptionsAdHoc.plist
[13:09:48]: FLUTTER_OUTPUT /Users/dev/actions-runner-01/_work/us-app/us-app/apps/insight_app/build/ios/archive/Runner.xcarchive

Actual log with flutter build ipa --verbose

2024-03-20T00:34:20.0550830Z [09:34:15]: ▸ �[35m[        ] Building release-testing IPA...�[0m
2024-03-20T00:34:20.0552500Z [09:34:15]: ▸ �[35m[        ] executing: /usr/bin/arch -arm64e xcrun xcodebuild -exportArchive -allowProvisioningDeviceRegistration -allowProvisioningUpdates -archivePath /Users/dev/actions-runner-01/_work/us-app/us-app/apps/insight_app/build/ios/archive/Runner.xcarchive -exportPath /Users/dev/actions-runner-01/_work/us-app/us-app/apps/insight_app/build/ios/ipa -exportOptionsPlist /Users/dev/actions-runner-01/_work/us-app/us-app/apps/insight_app/ios/Runner/ExportOptionsAdHoc.plist�[0m
2024-03-20T00:34:20.0552630Z [09:34:15]: ▸ �[35m[+9292 ms] ** EXPORT FAILED **�[0m
2024-03-20T00:34:20.0552690Z [09:34:15]: ▸ 
2024-03-20T00:34:20.0552760Z [09:34:15]: ▸ 
2024-03-20T00:34:20.0553590Z [09:34:15]: ▸ �[35m           2024-03-20 09:34:05.693 xcodebuild[54492:1199369] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path "/var/folders/83/z8071391421g7q0jzq89kplm0000gn/T/dev_2024-03-20_09-34-05.693.xcdistributionlogs".�[0m
2024-03-20T00:34:20.0553760Z [09:34:15]: ▸ �[35m           error: exportArchive: ipatool failed�[0m
2024-03-20T00:34:20.0553820Z [09:34:15]: ▸ 
2024-03-20T00:34:20.0554070Z [09:34:15]: ▸ �[35m           AppThinning.StubError(errorDescription: Optional("ipatool failed"))�[0m
2024-03-20T00:34:20.0554270Z [09:34:15]: ▸ �[35m[        ] Building release-testing IPA... (completed in 9.3s)�[0m
2024-03-20T00:34:20.0554410Z [09:34:15]: ▸ �[35m[        ] "flutter ipa" took 106,850ms.�[0m
2024-03-20T00:34:20.0554550Z [09:34:15]: ▸ �[35m[ +179 ms] ensureAnalyticsSent: 177ms�[0m
2024-03-20T00:34:20.0554680Z [09:34:15]: ▸ �[35m[        ] Running 1 shutdown hook�[0m
2024-03-20T00:34:20.0554810Z [09:34:15]: ▸ �[35m[   +1 ms] Shutdown hooks complete�[0m
2024-03-20T00:34:20.0554930Z [09:34:15]: ▸ �[35m[        ] exiting with code 0�[0m
@dotdoom
Copy link
Owner

dotdoom commented Mar 22, 2024

As flutter command exits with code 0 (which means "success"), the plugin merely propagates the same. I think this problem should be reported upstream, to the flutter tool.

I'll take a look if the issue is already reported, later.

@dotdoom dotdoom added bug Something isn't working blocked labels Mar 22, 2024
@dotdoom
Copy link
Owner

dotdoom commented Mar 22, 2024

This has been reported at flutter/flutter#125609, but has been closed for inactivity. There are other issues which report the same behavior, only tangentially (e.g. flutter/flutter#140212).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants