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

[Bug]: iOS build fails with ‘Command line “app-store” is deprecated’ #7632

Closed
1 of 3 tasks
pthorp opened this issue Aug 27, 2024 · 9 comments · Fixed by #7637
Closed
1 of 3 tasks

[Bug]: iOS build fails with ‘Command line “app-store” is deprecated’ #7632

pthorp opened this issue Aug 27, 2024 · 9 comments · Fixed by #7637
Labels
cli type: bug A confirmed bug report

Comments

@pthorp
Copy link

pthorp commented Aug 27, 2024

Capacitor Version

💊 Capacitor Doctor 💊

Latest Dependencies:

@capacitor/cli: 6.1.2
@capacitor/core: 6.1.2
@capacitor/android: 6.1.2
@capacitor/ios: 6.1.2

Installed Dependencies:

@capacitor/cli: 6.1.2
@capacitor/android: 6.1.2
@capacitor/core: 6.1.2
@capacitor/ios: 6.1.2

[success] iOS looking great! 👌
[success] Android looking great! 👌

Other API Details

npm: 10.8.2
node: v22.3.0

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

When performing an iOS build in the terminal, or as part of the CI process, an error is thrown:

> npx cap build ios

✔ Building xArchive in 27.11s
✖ Building IPA - failed!
[error] 2024-08-22 15:00:48.749 xcodebuild[67491:5632754] [MT] IDEDistribution: -[IDEDistributionLogging
        _createLoggingBundleAtPath:]: Created bundle at path "/var/folders/rt/24tdz11j2pz60hc02rsd7w3w9900gn/T/App_2024-08-22_15-00-48.732.xcdistributionlogs".
        2024-08-22 15:00:48.851 xcodebuild[67491:5632754] [MT] IDEDistribution: Command line name "app-store" is
        deprecated. Use "app-store-connect" instead.

Expected Behavior

The generated the file with App store information should contain 'app-store-connect', rather than 'app-store'.

Project Reproduction

Additional Information

No response

@pthorp pthorp added the triage label Aug 27, 2024
@jcesarmobile jcesarmobile added cli type: bug A confirmed bug report and removed triage labels Aug 28, 2024
Copy link

ionitron-bot bot commented Aug 28, 2024

This issue has been labeled as type: bug. This label is added to issues that that have been reproduced and are being tracked in our internal issue tracker.

@jcesarmobile
Copy link
Member

is that the complete error?

I "reproduced" the problem, but turns out it was just a warning and my error was something else.

@jcesarmobile jcesarmobile added the needs reply needs reply from the user label Aug 28, 2024
@pthorp
Copy link
Author

pthorp commented Aug 28, 2024

Indeed, that was the full error from the console. It was also the only error that was shown in any of the logs, in the IDEDistribution.critical.log, and the IPA file was not generated.

@Ionitron Ionitron removed the needs reply needs reply from the user label Aug 28, 2024
@jcesarmobile
Copy link
Member

can you run xcodebuild archive -archivePath App.xcarchive -exportArchive -exportOptionsPlist archive.plist -exportPath output -allowProvisioningUpdates -configuration Release from ios/App/ folder?

Are you using automatic or manual signing?

@pthorp
Copy link
Author

pthorp commented Aug 28, 2024

The archive.plist file is not present in that folder, so the command fails with a no such file exception.

e.g.

App > ls -l

24 Aug 11:26 App
28 Aug 17:44 App.xcodeproj
22 Aug 09:08 App.xcworkspace
24 Aug 11:26 Podfile
22 Aug 15:00 Podfile.lock
22 Aug 08:51 Pods
22 Aug 20:32 output

When this issue occurred, we had it set up with manual signing and choosing the required distribution profile.

@jcesarmobile
Copy link
Member

archive.plist is generated by the npx cap build ios command.

Manual signing is not supported at the moment, that's what causing the build to fail.

You can track the feature request on #7625

@pthorp
Copy link
Author

pthorp commented Aug 29, 2024

OK, no problem, thank you for your feedback.

@pthorp pthorp closed this as completed Aug 29, 2024
@jcesarmobile jcesarmobile reopened this Aug 29, 2024
@jcesarmobile
Copy link
Member

keeping it open to fix the warning, it will eventually break

Copy link

ionitron-bot bot commented Oct 3, 2024

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Oct 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cli type: bug A confirmed bug report
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants