DeployGate / deploygate-cli

A command-line interface for DeployGate
https://deploygate.com
Other
42 stars 9 forks source link

How to pass parameters to "dg deploy" command on MacOS Catalina M1 and make it recognize the correct workspace file? #314

Open quytdgmo opened 1 year ago

quytdgmo commented 1 year ago

The "dg deploy" command seems not to accept parameters when running on MacOS Catalina M1. How to make the CLI recognize the correct parameters passed from the command line to build and deploy the app on DeployGate?

The following two commands produce the same results: dg deploy --scheme DemoApp --configuration Release dg deploy That always require me to select scheme, ignored the --scheme parameter I passed on CLI

Select Scheme: 
1. DemoApp
2. DemoApp2
3. DemoApp3
?  1

I am developing a React Native app using Ruby 2.7.7 and running the "dg deploy" command under the ios folder. However, the DeployGate CLI does not recognize the specified parameters and also takes the DemoApp.xcodeproj file as default instead of the DemoApp.xcworkspace file, so it does not generate the IPA file as when I run the Xcode build command.

The build command on my machine is: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -scheme DemoApp -configuration Release archive -archivePath ./DemoApp/Release/Archive.xcarchive -workspace DemoApp.xcworkspace

The generated deploygate cli command that does not run is: xcodebuild -resolvePackageDependencies -scheme DemoApp -project /Users/demouser/Development/demoapp/ios/DemoApp.xcodeproj

jmatsu commented 9 months ago

We are very sorry for our late reply.

That always require me to select scheme, ignored the --scheme parameter I passed on CLI

We can't reproduce this issue and --scheme option is properly processed.

The build command on my machine is: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -scheme DemoApp -configuration Release archive -archivePath ./DemoApp/Release/Archive.xcarchive -workspace DemoApp.xcworkspace

The generated deploygate cli command that does not run is: xcodebuild -resolvePackageDependencies -scheme DemoApp -project /Users/demouser/Development/demoapp/ios/DemoApp.xcodeproj

The current implementation doesn't provide an option to select a specific workspace. We are planning to provide such option and more flexible configuration.