Skip to content

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

@quytdgmo

Description

@quytdgmo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions