deploygate-cli icon indicating copy to clipboard operation
deploygate-cli copied to clipboard

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

Open quytdgmo opened this issue 1 year ago • 1 comments

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

quytdgmo avatar Mar 20 '23 10:03 quytdgmo

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.

jmatsu avatar Jan 18 '24 08:01 jmatsu