Git Product home page Git Product logo

Comments (14)

DennisM330 avatar DennisM330 commented on June 18, 2024 1

I cloned and tested the new changes for iOS. I was able to run the app in both the iOS simulator and on an iPad.

To run in the iOS simulator:
ionic cordova emulate ios

Brief directions to run on your iPad

  • Ensure your iPad is connected to your MacBook
  • Launch Xcode on your MacBook
  • Open the Xcode workspace for where the generated iOS artifacts are located: (Users/username/mobile-app-name/platforms/ios/mobile-app-name.xcworkspace
  • Within Xcode, go to project settings->General
  • In the signing section, ensure your name is setup as a personal team next to the Team drop down. If not, select Add an account in the drop down next to Team and supply your Apple ID login info.
  • Go to Build Settings
  • Ensure your team (usually your name) is selected under Development Team in the Signing section. If not select your name.
  • Near the top upper left click your project name and select your connected iOS device under device drop down list
  • Click the run icon
  • The app should install automatically on your iOS device.
  • To run the app, on your iOS device, go to General settings->Profiles & Device Management->Developer App. Select your app, and click to trust the app.

from composer-ionic.

DennisM330 avatar DennisM330 commented on June 18, 2024

ionic info shows the following versions installed on my system:
ionic info

global packages:

@ionic/cli-utils : 1.5.0
Cordova CLI      : 8.0.0 
Ionic CLI        : 3.5.0

local packages:

@ionic/app-scripts : 3.1.9
Cordova Platforms  : ios 4.5.4
Ionic Framework    : ionic-angular 3.7.1

System:

Node       : v8.11.1
OS         : macOS High Sierra
Xcode      : Xcode 8.0 Build version 8A218a 
ios-deploy : not installed
ios-sim    : 5.0.8 
npm        : 5.6.0 

from composer-ionic.

DennisM330 avatar DennisM330 commented on June 18, 2024

This seems to help to rid of the channel closed error. You may want to update the doc/ReadMe
npm uninstall --save-dev @ionic/cli-plugin-cordova
npm install --save-dev @ionic/[email protected]

See ionic-team/ionic-framework#12561

from composer-ionic.

Jakeeyturner avatar Jakeeyturner commented on June 18, 2024

Hi @DennisM330

I haven't been able to run iOS applications due to my development environment, so thank you for creating this issue!

Would you be able to clarify which package you had to uninstall and re-install for iOS to work correctly?

Thanks,
Jake

from composer-ionic.

DennisM330 avatar DennisM330 commented on June 18, 2024

npm uninstall --save-dev @ionic/cli-plugin-cordova
npm install --save-dev @ionic/[email protected]

After I did that, I can both run on my iPad or use the cordova ios emulator.

from composer-ionic.

Jakeeyturner avatar Jakeeyturner commented on June 18, 2024

Did you run this inside a generated mobile applications directory?

Those commands wouldn't do anything, as you're not specifying a node package to uninstall and install. I think you're missing the package name of what you uninstalled and installed as the syntax isn't correct. Or you might have done something else to make it work correctly.

from composer-ionic.

DennisM330 avatar DennisM330 commented on June 18, 2024

npm uninstall --save-dev @ionic/cli-plugin-cordova npm install --save-dev @ionic/[email protected]

from composer-ionic.

Jakeeyturner avatar Jakeeyturner commented on June 18, 2024

@DennisM330 Could I see the contents of your 'package.json' file for your working application?

from composer-ionic.

DennisM330 avatar DennisM330 commented on June 18, 2024

package.txt

from composer-ionic.

DennisM330 avatar DennisM330 commented on June 18, 2024

I am fully functional now (both ios emulator and running app on my iPad) after just simply staying with the cli cordova plugin version referenced above. Might want to check with ionic to see if there is an issue with later versions of the plugin. Probably not a bug here but maybe an ionic dependancy.

from composer-ionic.

DennisM330 avatar DennisM330 commented on June 18, 2024

For reference, I had to perform some other updates on my Mac to deploy the app to my iOS devices including xcode and ios-deploy, Ionic Info now shows:
ionic info
[WARN] Detected locally installed Ionic CLI, but it's too old--using global CLI.

cli packages: (/Users/drmiller/.nvm/versions/node/v8.11.1/lib/node_modules)

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 8.0.0 

local packages:

@ionic/app-scripts : 3.1.9
Cordova Platforms  : android 6.4.0 ios 4.5.4
Ionic Framework    : ionic-angular 3.7.1

System:

ios-deploy : 1.9.2 
ios-sim    : 5.0.8 
Node       : v8.11.1
npm        : 5.6.0 
OS         : macOS High Sierra
Xcode      : Xcode 9.3.1 Build version 9E501 

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : pro

from composer-ionic.

Jakeeyturner avatar Jakeeyturner commented on June 18, 2024

Thanks @DennisM330

Would you be able to clone this repository and test the new changes I've made for iOS?

Also, if you don't mind and have the time, would you be able to create a guide for configuring your iOS development environment?

from composer-ionic.

Jakeeyturner avatar Jakeeyturner commented on June 18, 2024

Thank you @DennisM330!
I'm going to include these instructions in the repositories README.

from composer-ionic.

DennisM330 avatar DennisM330 commented on June 18, 2024

May want to consider adding these version pre-reqs for MacOS High Sierra
ios-deploy : 1.9.2
OS : macOS High Sierra
Xcode : Xcode 9.3.1 Build version 9E501

from composer-ionic.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.