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

Archiving error when build .xcodeproj #16

Closed
cookle opened this issue Jun 21, 2022 · 2 comments
Closed

Archiving error when build .xcodeproj #16

cookle opened this issue Jun 21, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@cookle
Copy link

cookle commented Jun 21, 2022

First of all, forgive my poor english

Describe the bug

i got an error when i build a framework

To Reproduce

Steps to reproduce the behavior:

  1. change Surfile file like below
<dict>
      <key>sdk</key>
      <string>xxxxx</string>
      <key>project</key>
      <string>xxxxx.xcodeproj</string>
      <key>scheme</key>
      <string>xxxxx</string>
</dict>
  1. run surmagic xcf
  2. got an error:
    ["xcodebuild", "-quiet", "archive", "-project xxxxx.xcodeproj", "xxxxx.xcodeproj", "-sdk", "macosx", "-scheme", "xxxxx", "-archivePath", "./build/macOSCatalyst.xcarchive", "SKIP_INSTALL=NO", "SUPPORTS_MACCATALYST=YES"])
    xcodebuild: error: invalid option '-project xxxxx.xcodeproj'

I think "-project xxxxx.xcodeproj" is the reason why i got this error and #14 means the same as me

Details

  • macOS version : Monterey 12.4 (21F79)
  • Swift version : 5.5
  • Your CPU type : Intel

Checklist

  • [❌] If possible, I've reproduced the issue using the master branch of this package
  • [✅] I've searched for existing GitHub issues
@gurhub
Copy link
Owner

gurhub commented Jun 29, 2022

Hi @cookle,

thank you for contributing. Yes, I see the issue, it's probably a bug, I don't have time to test right now. You can safely use with workspace option for now. Even if you don't need you can convert your project to a workspace as a workaround if you really need to use it right now. But I'll try to fix the error as soon as possible on the weekends.

Best

@gurhub gurhub added the bug Something isn't working label Jul 1, 2022
@gurhub
Copy link
Owner

gurhub commented Aug 5, 2022

Thank you for your effort. Fixed on version 1.2.7.

@gurhub gurhub closed this as completed Aug 5, 2022
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

2 participants