gurhub / surmagic

🚀 Command Line Tool to create XCFramework for multiple platforms in one shot!
MIT License
310 stars 43 forks source link

Archiving error when build .xcodeproj #16

Closed cookle closed 1 year ago

cookle commented 2 years ago

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>
  2. run surmagic xcf
  3. 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

Checklist

gurhub commented 2 years ago

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 commented 1 year ago

Thank you for your effort. Fixed on version 1.2.7.