Comments (14)
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.
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.
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.
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.
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.
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.
npm uninstall --save-dev @ionic/cli-plugin-cordova npm install --save-dev @ionic/[email protected]
from composer-ionic.
@DennisM330 Could I see the contents of your 'package.json' file for your working application?
from composer-ionic.
from composer-ionic.
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.
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.
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.
Thank you @DennisM330!
I'm going to include these instructions in the repositories README.
from composer-ionic.
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)
- As a user, I would like documentation about the generated application
- For generated mobile app, do not display resource prefix for relationships. HOT 2
- As a user, I would like to have predefined composer queries available from the menu in the generated Mobile App
- Form generation needs improvement
- Mobile applications need to be able to handle large amounts of resources
- Code generator test improvements
- Mobile application test improvements
- Composer runtime (0.20.0) not compatible with client (0.19.15) HOT 1
- Type script errors (composer v0.20.7)
- As a user, I would like more documentation on how to use the code generator tool
- As a user, I would like to be able to use a Web service to generate an application
- As a user, I would like to be able to view the historian in the application
- As a user, I would like to be able to use a REST API which requires authentication
- As a user, I would like to invite someone to join the business network
- As a user, I would like to generate applications from different participant perspectives
- As a user, I would like to receive events
- As a user, I would like more generation options regarding development practices
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from composer-ionic.