-
AuthorPosts
-
September 26, 2018 at 2:23 pm #15622
rem.wilParticipantHello, I'm having some trouble building my iOS project. I'm following the Getting started with WPLMS Mobile App and I'm currently on the part Publishing to Apple AppStore : App Signing. After typing ionic build ios in my terminal I get an error message.
The message continues with a lot more code describing similar things. When I open my WPLMS folder it doesn't have any file/s with the extension xcworkspace and doesn't look anything like the folder you have displayed.ionic-app-scripts build [15:09:28] ionic-app-scripts 3.1.11 [15:09:28] build dev started ... [15:09:29] clean started ... [15:09:29] clean finished in 21 ms [15:09:29] copy started ... [15:09:29] deeplinks started ... [15:09:30] deeplinks finished in 1.56 s [15:09:30] transpile started ... [15:09:45] transpile finished in 14.98 s [15:09:45] preprocess started ... [15:09:45] preprocess finished in 2 ms [15:09:45] webpack started ... [15:09:46] copy finished in 16.96 s [15:10:40] webpack finished in 54.30 s [15:10:40] sass started ... Without <code>from</code> option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to <code>undefined</code> to prevent this warning. [15:10:54] sass finished in 14.43 s [15:10:54] postprocess started ... [15:10:54] postprocess finished in 21 ms [15:10:54] lint started ... [15:10:54] build dev finished in 85.69 s [15:11:08] tslint: src/services/config.ts, line: 2 [15:11:08] tslint: src/services/config.ts, line: 3 [15:11:08] tslint: src/models/user.ts, line: 1 [15:11:08] tslint: src/services/authentication.ts, line: 41 [15:11:08] tslint: src/services/authentication.ts, line: 108 [15:11:08] tslint: src/services/authentication.ts, line: 247 [15:11:08] tslint: src/services/authentication.ts, line: 2 All imports on this line are unused. L1: import { Injectable } from '@angular/core'; L2: import { Http, Headers, Response, RequestOptions, URLSearchParams } from '@angular/http'; L3: import { Storage } from '@ionic/storage'; All imports on this line are unused. L2: import { Http, Headers, Response, RequestOptions, URLSearchParams } from '@angular/http'; L3: import { Storage } from '@ionic/storage'; All imports on this line are unused. L1: import { Course } from './course'; 'fbObservable' is declared but its value is never read. L40: private observable: Observable<any>; //Tracks request in progress L41: private fbObservable: Observable<any>; //fb Login L42: private baseUrl; 'getHeaders' is declared but its value is never read. L108: private getHeaders(){ L109: this.headers = this.storage.get('token').then((token) => { 'obj' is declared but its value is never read. L246: let permissions = ["public_profile","email"]; L247: let obj = {}; L248: //let env = this; 'Http' is declared but its value is never read. L1: import { Injectable, } from '@angular/core'; L2: import { Http, Headers, Response, RequestOptions, URLSearchParams } from '@angular/http'; L3: import { Platform, LoadingController, ToastController } from 'ionic-angular'; 'Response' is declared but its value is never read. L1: import { Injectable, } from '@angular/core'; [15:11:08] tslint: src/services/authentication.ts, line: 2 [15:11:08] tslint: src/services/authentication.ts, line: 2 [15:11:08] tslint: src/services/authentication.ts, line: 14 [15:11:08] tslint: src/services/authentication.ts, line: 16 [15:11:08] tslint: src/services/activity.ts, line: 28 [15:11:08] tslint: src/services/activity.ts, line: 32 L2: import { Http, Headers, Response, RequestOptions, URLSearchParams } from '@angular/http'; L3: import { Platform, LoadingController, ToastController } from 'ionic-angular'; 'URLSearchParams' is declared but its value is never read. L1: import { Injectable, } from '@angular/core'; L2: import { Http, Headers, Response, RequestOptions, URLSearchParams } from '@angular/http'; L3: import { Platform, LoadingController, ToastController } from 'ionic-angular'; All imports on this line are unused. L14: import { TabsPage } from '../pages/tabs/tabs'; All imports on this line are unused. L16: import { Storage } from '@ionic/storage'; L17: import { Device } from '@ionic-native/device'; 'observable' is declared but its value is never read. L27: private lastpushed:number=0; L28: private observable: Observable<any>; //Tracks request in progress Property 'platform' is declared but its value is never read. L31: private http:Http, L32: private platform : Platform, L33: private storage: Storage, All imports on this line are unused.
Could you please let me know what is wrong here as I can't seem to work out the error and have gone over the steps carefully a few times.
September 27, 2018 at 8:43 am #15649
adminMemberWell you have to run :ionic cordova build --release ios
in order to generate Ios app. You need to open this file by double clicking on it : http://prntscr.com/kzab3r Then select your code signing and connect your Ios device to mac to get it on your phone .September 28, 2018 at 7:20 am #15693
adminMembertry adding these lines in your .htaccess file
SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0
IF above does not works then please change the above line to :
SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$1
October 1, 2018 at 6:36 am #15741
adminMemberOk please try to put blank in the client_id in config.ts file . refer : http://prntscr.com/l0p96y If still you are facing this issue then please share your site url and admin credentials to check this issue at your end . PS : mark reply as private while sharing .October 4, 2018 at 6:38 am #15800
adminMemberHi its working totally fine at my end : https://screencast-o-matic.com/watch/cF6f1AYIwe Seems like something is wrong with your Ios app setup . Please try to do another setup following this :Hi this is my setup on IOs which is working :
Hi here is my working build environment on mac :
IONIC INFO :
cli packages: (/usr/local/lib/node_modules)
@ionic/cli-utils : 1.19.1
ionic (Ionic CLI) : 3.19.1
global packages:
cordova (Cordova CLI) : 8.0.0
local packages:
@ionic/app-scripts : 3.1.8
Cordova Platforms : ios 4.5.4
Ionic Framework : ionic-angular 3.9.2
System:
ios-deploy : 1.9.2
Node : v6.11.4
npm : 3.10.10
OS : macOS High Sierra
Xcode : Xcode 9.0 Build version 9A235
Environment Variables:
ANDROID_HOME : not set
Misc:
backend : pro
Cordova plugins and their versions :
cordova-plugin-camera 4.0.2 “Camera”
cordova-plugin-console 1.1.0 “Console”
cordova-plugin-device 2.0.1 “Device”
cordova-plugin-facebook4 2.0.1 “Facebook Connect”
cordova-plugin-file 6.0.1 “File”
cordova-plugin-file-transfer 1.7.1 “File Transfer”
cordova-plugin-googleplus 5.3.0 “Google SignIn”
cordova-plugin-inappbrowser 2.0.2 “InAppBrowser”
cordova-plugin-inapppurchase 1.1.0 “In App Purchase”
cordova-plugin-ionic-keyboard 2.0.5 “cordova-plugin-ionic-keyboard”
cordova-plugin-ionic-webview 1.1.16 “cordova-plugin-ionic-webview”
cordova-plugin-splashscreen 5.0.2 “Splashscreen”
cordova-plugin-statusbar 2.4.2 “StatusBar”
cordova-plugin-whitelist 1.3.3 “Whitelist”
cordova-sqlite-storage 2.0.4 “Cordova sqlite storage plugin”
ionic-plugin-keyboard 2.2.1 “Keyboard”.
config.xml file and package.json files : https://we.tl/GY1MNeAi8F
You can take backup of your ionic setup rename the package.json file and node_modules folder .
then you have to add the given config.json file to your project and open terminal and run :
npm install
After that please check for the corodova plugins .
Install the cordova plugins with their versions mentioned above .
example :
cordova plugin add {cordova plugin name}@{version}
cordova plugin add [email protected]
-
AuthorPosts
- You must be logged in to reply to this topic.