Skip to content

Errors and How to create a test version of app for android and ios? #1820

@EllaVader

Description

@EllaVader

I'm trying to create android and ios versions of this so I can practice writing Appium tests with it as we are going to be developing an ionic / angular app. When I try to run
How can I do this?
when I try to run:
ionic cordova run android --prod
or
ionic cordova build android
I get this error

`ng run app:ionic-cordova-build:production --platform=android
Node.js version v23.0.0 detected.
Odd numbered Node.js versions will not enter LTS status and should not be used for production. For more information, please see https://nodejs.org/en/about/previous-releases/.
Error: Unknown argument: platform
[ERROR] An error occurred while running subprocess ng.

    ng run app:ionic-cordova-build:production --platform=android exited with
    exit code 1.
    
    Re-running this command with the --verbose flag may provide more
    information.`

I don't even know if doing this will give me and apk for me to play with.

When I try to run
ionic cordova run ios --prod
or
ionic cordova build ios

I get this error

no such file or directory, open '/Users/sun/code/ionic-conference-app/ios/package.json' at async open (node:internal/fs/promises:639:25) at async readFile (node:internal/fs/promises:1239:14) at async module.exports (/Users/sun/code/ionic-conference-app/node_modules/cordova-fetch/index.js:57:25) { errno: -2, code: 'ENOENT', syscall: 'open', path: '/Users/sun/code/ionic-conference-app/ios/package.json' }

I'm hoping I can get some help on how to resolve this

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions