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

fix: "Encountered error while creating the IPA" may only be a warning #2859

Open
TonyD-TuftAndPaw opened this issue Feb 6, 2025 · 6 comments
Labels
bug Something isn't working

Comments

@TonyD-TuftAndPaw
Copy link

TonyD-TuftAndPaw commented Feb 6, 2025

App ID: com.tuftandpaw.app.staging

Description

flutter build skims over the message "Encountered error while creating the IPA", where shorebird release halts.

Steps To Reproduce

(Sorry, maybe later?)

Expected Behavior

shorebird release should not halt on any warnings that flutter build doesn't halt on.

Additional Context

Logs attached for a successful and unsuccessful run, with the only material difference being the use of shorebird release instead of flutter build.

flutter build iOS success.txt
shorebird release iOS failure.txt

@TonyD-TuftAndPaw TonyD-TuftAndPaw added the bug Something isn't working label Feb 6, 2025
@eseidel
Copy link
Contributor

eseidel commented Feb 6, 2025

@TonyD-TuftAndPaw
Copy link
Author

The most relevant chunks from the logs:

From the success, not using shorebird:

...
[21:30:58]: ▸ Encountered error while creating the IPA:
[21:30:58]: ▸ Try distributing the app in Xcode:
[21:30:58]: ▸ open /Users/runner/work/TuftAndPawApp/TuftAndPawApp/build/ios/archive/Runner.xcarchive
[21:30:58]: Cruising back to lane 'ios build_flutter_app' 🚘
[21:30:58]: Cruising back to lane 'ios build_ipa' 🚘
[21:30:58]: Cruising back to lane 'ios release_app_store' 🚘
[21:30:58]: -----------------------
[21:30:58]: --- Step: build_app ---
[21:30:58]: -----------------------
[21:30:58]: Successfully loaded '/Users/runner/work/TuftAndPawApp/TuftAndPawApp/ios/fastlane/Gymfile' 📄

+-------------------------------------------+
| Detected Values from './fastlane/Gymfile' |
+---------------------+---------------------+
| scheme              | staging             |
| output_directory    | ./                  |
+---------------------+---------------------+

[21:30:58]: Resolving Swift Package Manager dependencies...
[21:30:58]: $ xcodebuild -resolvePackageDependencies -workspace ./Runner.xcworkspace -scheme staging
...

From the failure, using shorebird:

...
[20:31:20]: ▸ [   +2 ms] Encountered error while creating the IPA:
[20:31:20]: ▸ [        ] Try distributing the app in Xcode:
[20:31:20]: ▸ [        ]   open /Users/runner/work/TuftAndPawApp/TuftAndPawApp/build/ios/archive/Runner.xcarchive (360.8s)
[20:31:20]: ▸ If you aren't sure why this command failed, re-run with the --verbose flag to see more information.
[20:31:20]: ▸ You can also [file an issue](https://github.com/shorebirdtech/shorebird/issues/new/choose) if you think this is a bug. Please include the following log file in your report:
[20:31:20]: ▸ /Users/runner/Library/Application Support/shorebird/logs/1738873514613_shorebird.log
+----------------------------------------------------------------------------------------------------------+
|                                               Lane Context                                               |
+------------------------------------+---------------------------------------------------------------------+
| DEFAULT_PLATFORM                   | ios                                                                 |
| PLATFORM_NAME                      | ios                                                                 |
| LANE_NAME                          | ios release_app_store                                               |
| LATEST_BUILD_NUMBER                | 27                                                                  |
| LATEST_VERSION                     | 0.1.7                                                               |
| KEYCHAIN_PATH                      | ~/Library/Keychains/fastlane_tmp_keychain                           |
| ORIGINAL_DEFAULT_KEYCHAIN          | "/Users/runner/Library/Keychains/login.keychain-db"                 |
| SIGH_PROFILE_TYPE                  | app-store                                                           |
| MATCH_PROVISIONING_PROFILE_MAPPING | {"***"=>"match AppStore ***"} |
+------------------------------------+---------------------------------------------------------------------+
[20:31:21]: Called from Fastfile at line 22
[20:31:21]: ```
[20:31:21]:     20:	    authenticate_apple_store
[20:31:21]:     21:	    
[20:31:21]:  => 22:	    build_flutter_app(
[20:31:21]:     23:	      type: "ipa",
[20:31:21]:     24:	      no_codesign: options[:no_codesign] || false,
[20:31:21]: ```
[20:31:21]: Exit status of command 'cd /Users/runner/work/TuftAndPawApp/TuftAndPawApp && shorebird release ios  -- --release -- --no-pub -- --suppress-analytics -- --build-number=28 -- --build-name=v0.1.6 --flavor staging -t lib/main_staging.dart' was 70 instead of 0.
...

@eseidel
Copy link
Contributor

eseidel commented Feb 6, 2025

Hmm, I'm struggling to find a real error in that log. 🤔 @bryanoltman might know.

@bryanoltman
Copy link
Contributor

@geniuscva
Copy link

having the same problem

@eseidel
Copy link
Contributor

eseidel commented Feb 12, 2025

Bryan has been working on adding tooling to help surface common errors from logs. Although I'm still not sure what the error is in these logs. Most often errors building for iOS are signing errors, so another thing to try might be shorebird release ios --no-codesign (not as a final solution, just to see if it works while disabling XCode signing).

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

No branches or pull requests

4 participants