标签: ionic-framework

iOS应用程序上载到iTunes Connect会导致无效签名问题

我正在研究混合移动应用程序项目(离子框架),并发布到Android,iOS和Web。此问题仅涉及在iOS上发布应用程序。

我遇到了一个问题,就是在将我的iOS应用程序从Xcode构建,归档并上传到App Store之后,突然开始从iTunes Connect收到以下电子邮件。

App Store Connect:您的应用“ YourAppName”(Apple ID:XXXXXXXXXX)有一个或多个问题

亲爱的开发人员,

我们发现您的应用“ YourAppName”的最新交付存在一个或多个问题。请更正以下问题,然后重新上传。

无效签名-密封的资源丢失或无效。路径[YourAppName.app/YourAppName]上的文件未正确签名。确保已使用分发证书而不是临时证书或开发证书对应用程序进行了签名。验证Xcode中的代码签名设置在目标级别正确(该设置覆盖项目级别的所有值)。此外,请确保您要上传的捆绑软件是使用Xcode中的Release目标而不是Simulator目标构建的。如果确定代码签名设置正确,请在Xcode中选择“全部清除”,删除Finder中的“ build”目录,然后重新构建发布目标。有关更多信息,请咨询 https://developer.apple.com/library/ios/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html

最好的祝福,

App Store团队

我尝试了有关此问题的所有内容:

检查我的证书,配置文件,重新创建它们,更新Xcode,再次构建项目,确保我使用的是分发证书而不是临时证书,并验证了Xcode中的代码签名设置正确,并验证了捆绑包是否已构建使用发布目标,尝试使用“全部清除”选项,在查找程序中删除“ build”目录,然后重新构建发布。简而言之-我尝试了Apple可以找到的有关此问题的所有内容,还在StackOverflow中查找了相同的问题,并尝试了各种推荐的解决方案。我多次尝试了所有这些选项,以确保我不会错过任何东西。

没事...

另外请注意,我以前可以顺利上传到App Store。没有对项目进行任何更改,不会导致此无效签名问题-没有证书过期,没有创建新证书,没有创建新的配置文件。使用相同的配置文件和证书,前一段时间效果很好。iTunes Connect突然开始响应此问题。

我还能尝试什么?

xcode itunesconnect ios cordova ionic-framework

2
推荐指数
1
解决办法
978
查看次数

Ionic服务稍后再试[无法加载index.html]

我已经安装了ionic和cordova,但是当我创建一个应用程序并尝试运行它时,我在终端中得到了

ionic-app-scripts serve --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser
[app-scripts] [19:17:47]  ionic-app-scripts 3.1.11 
[app-scripts] [19:17:47]  watch started ... 
[app-scripts] [19:17:47]  build dev started ... 
[app-scripts] [19:17:47]  clean started ... 
[app-scripts] [19:17:47]  clean finished in 3 ms 
[app-scripts] [19:17:47]  copy started ... 
[app-scripts] [19:17:47]  deeplinks started ... 
[app-scripts] [19:17:47]  copy finished in 13 ms 
[app-scripts] [19:17:47]  deeplinks finished in 14 ms 
[app-scripts] [19:17:47]  transpile started ... 
[app-scripts] [19:17:52]  transpile finished in 5.34 s 
[app-scripts] [19:17:52]  preprocess started ... …
Run Code Online (Sandbox Code Playgroud)

ionic-framework

2
推荐指数
1
解决办法
3386
查看次数

Angular5 - 从子组件的输入[(ngModel)]绑定更改父级属性

我已经看过这个类似的问题没有成功.问题中提到的掠夺者似乎被打破了.

我试图从子组件的[(ngModel)]绑定更新父组件的属性.

这是子组件HTML:

<div class="elastic-textarea">
    <ion-input rows="1"  [value]="inputValue" [(ngModel)]="inputValue" (ngModelChange)="change($event)" ></ion-input>
    </div>
Run Code Online (Sandbox Code Playgroud)

这是子组件TS:

import { Component, EventEmitter, Input, Output, OnInit } from '@angular/core';

@Component({
  selector: 'app-childinput',
  templateUrl: './childinput.component.html',
  styleUrls: ['./childinput.component.css']
})
export class ChildinputComponent  {
@Input() inputValue: string;
  @Output() emitInputValue = new EventEmitter();
  constructor() { }

change(newValue) {
    console.log('newvalue', newValue)
    this.inputValue = newValue;
    this.emitInputValue.emit(newValue);
  }
}
Run Code Online (Sandbox Code Playgroud)

这就是我在父组件中使用子组件的方式:

<app-childinput [(inputValue)]="thevalue" ></app-childinput>
<p>The changed value should be reflected here: {{thevalue}}</p>
Run Code Online (Sandbox Code Playgroud)

这是STACKBLITZ展示的问题.父组件是调用"home"的页面,子组件是名为"childinput"的组件.

我做错了什么,或者这在Angular中根本不可能?

javascript typescript ionic-framework ionic3 angular

2
推荐指数
1
解决办法
905
查看次数

Cordova / Ionic Android:Push和GoogleMaps插件之间的Google Play服务版本冲突

我目前正在开发一个需要Push和GoogleMaps插件的Ionic应用程序。

如果我创建一个空白/新项目,添加android平台,并仅安装其中一个插件,则一切运行正常。但是,一旦安装了两个插件,便无法构建Android。

到目前为止,这是我所做的事情,并且是证明问题的最基本/最简单的方法:

  1. ionic start GoogleServicesIsues空白
  2. cd GoogleServicesIssue
  3. 离子科尔多瓦平台添加android @ latest
  4. 离子Cordova插件添加cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID =“ 123” --variable API_KEY_FOR_IOS =“ ABC”
  5. 离子Cordova插件添加phonegap-plugin-push --variable FCM_VERSION = 15.0.1
  6. 离子科尔多瓦建立Android

...并且构建失败,因为找不到Firebase消息库。

无法解析配置':app:debugCompileClasspath'的所有文件。

找不到com.google.firebase:firebase-messaging:15.0.1。在以下位置搜索:

文件:/ Users / [user] /Library/Android/sdk/extras/android/m2repository/com/google/firebase/firebase-messaging/15.0.1/firebase-messaging-15.0.1.jar

https://jcenter.bintray.com/com/google/firebase/firebase-messaging/15.0.1/firebase-messaging-15.0.1.pom

 https://jcenter.bintray.com/com/google/firebase/firebase-messaging/15.0.1/firebase-messaging-15.0.1.jar
Run Code Online (Sandbox Code Playgroud)

https://maven.google.com/com/google/firebase/firebase-messaging/15.0.1/firebase-messaging-15.0.1.pom

有谁能弄清楚如何使这两个插件协同工作?

android cordova firebase google-play-services ionic-framework

2
推荐指数
1
解决办法
902
查看次数

无法绑定到“ FormGroup”,因为它不是“ form”的已知属性----

所以我一直在浏览互联网,每个人都说相同的话,那就是我必须在appmodule.ts中添加导入,但是我已经添加了导入,但是我仍然遇到相同的错误。

错误是:

Can't bind to 'FormGroup' since it isn't a known property of 'form'. ("
        <ion-col>

            <form novalidate [ERROR ->][FormGroup]="form" (ngSubmit)="addUser(form)">

                <ion-title class="center">Registr"): ng:///AppModule/RegisterPage.html@8:33
Run Code Online (Sandbox Code Playgroud)

Register.html(https://ghostbin.com/paste/8wn3q)

Register.ts(https://ghostbin.com/paste/3sxcz)

Appmodule.ts(https://ghostbin.com/paste/wgmxd)

typescript ionic-framework angular angular-forms

2
推荐指数
1
解决办法
4607
查看次数

在滑动时,按钮不会显示在离子状态

在Ionic框架内工作.我有一个非常简单的应用程序设置,无法在滑动时显示按钮:

//Swipable buttons don't work.
$scope.itemButtons = [
 {
     text: 'Edit',
     type: 'Button',
     onTap: function (item) {
         alert('Edit Item');
     }
 },
 {
     text: 'Share',
     type: 'Button',
     onTap: function (item) {
         alert('Share Item');
     }
 }
];

<ion-content>
    <ion-list>
        <ion-item ng-repeat="facility in facilities" item="item" can-swipe="true" option-buttons="itemButtons">
            {{facility.name}}
        </ion-item>
    </ion-list>
</ion-content>
Run Code Online (Sandbox Code Playgroud)

angularjs ionic-framework

1
推荐指数
1
解决办法
5530
查看次数

ionicScrollDelegate with ionic(AngularJS)

新的离子,并试图弄清楚为什么我不能让ionicScrollDelegate正常工作.我有以下标记:

 <content has-header="true" on-refresh="refreshFriends()" padded="true">
          <ion-scroll delegate-handle="myScroll">
      <refresher></refresher>
      ....
     </ion-scroll>
Run Code Online (Sandbox Code Playgroud)

然后在控制器中:

 angular.module('starter.controllers', [])

.controller('MenuCtrl', function($scope, $ionicScrollDelegate, $http, $location, APIService) {

    var delegate = $ionicScrollDelegate.$getByHandle('myScroll');

    delegate.rememberScrollPosition('my-scroll-id');
    delegate.scrollToRememberedPosition();
    .....
Run Code Online (Sandbox Code Playgroud)

}); 但是,在加载时 - 我在控制台中收到此错误:

Error: [$injector:unpr] Unknown provider: $ionicScrollDelegateProvider <- $ionicScrollDelegate
Run Code Online (Sandbox Code Playgroud)

有什么建议吗?我在ng-view中加载内容,如下所示:

APIService.async().then(function(d) {
  if (d.meta.code == 200) {
    $scope.checkins = d.response.checkins.items;

  }
});
Run Code Online (Sandbox Code Playgroud)

所以我不确定这里是否有时间问题,但我在$ async函数中放置了$ ionicScrollDelegate的声明并没有运气.

我相信我正确地遵循了指示.谢谢!

更新 这是app.js代码:

   angular.module('starter', ['ionic', 'ngRoute', 'ngAnimate', 'starter.services',      'starter.controllers'])

  .config(function ($compileProvider){
 // Needed for routing to work
  $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|file|tel):/);
 })

  .config(function($routeProvider, $locationProvider) {

...
 });

 document.addEventListener("deviceready", function(e) …
Run Code Online (Sandbox Code Playgroud)

javascript angularjs ionic-framework

1
推荐指数
1
解决办法
1万
查看次数

Angular指令不在ionic.js中工作

我有一些麻烦,让我的指令加载我的ionic.js web应用程序使用角度.我可以将变量{{someTitle}}从控制器传递给模板,但是指令没有被加载,即<div class="blaha" ng-transclude>abc123</div>没有传递给模板......我在下面遗漏了一些致命的东西:

离子模板:

<ion-view title="Roll the Dice">
  <ion-content has-tabs="true">
      <div my-dice>{{someTitle}}</div>

      <div class="card">
          <div class="item item-text-wrap">
              {{someTitle}}
          </div>
      </div>


      <button class="button button-dark button-full button-positive">
          Full Width Block Button
      </button>

  </ion-content>
</ion-view>
Run Code Online (Sandbox Code Playgroud)

控制器代码:

'use strict';
angular.module('TrueDice.controllers', [])


// A simple controller that fetches a list of data from a service
.controller('HistoryIndexCtrl', function($scope, TrueRandomService) {

        if($scope.rands="undefined"){
            $scope.rands = [];
        }
        TrueRandomService.getRand(1).success(function(data){
            $scope.rands.unshift(data);
            console.log(data);
        });
})
.controller('HistoryDetailCtrl', function($scope, $stateParams, TrueRandomService) {
  //currently empty

}).controller('RollViewCtrl', function($scope){
    $scope.someTitle="BLA";

}).directive('my-dice', …
Run Code Online (Sandbox Code Playgroud)

javascript angularjs ionic-framework

1
推荐指数
1
解决办法
5782
查看次数

科尔多瓦相机 - 离子

我一直在寻找最近近2天的解决方案.我正在尝试使用ngCordova Camera插件.

我正在使用带有AngularJS的ionic-yeoman框架.

我做的是:

bower install --save ngCordova.
Run Code Online (Sandbox Code Playgroud)

添加ngCordova到我的app.module.安装了cordova相机插件:

cordova plugin add org.apache.cordova.camera.
Run Code Online (Sandbox Code Playgroud)

我的控制器:

.controller('profileCtrl', function($scope, myService, $cordovaCamera)
{
  $scope.takePicture = function() {
    var options = { 
        quality : 75, 
        destinationType : Camera.DestinationType.DATA_URL, 
        sourceType : Camera.PictureSourceType.CAMERA, 
        allowEdit : true,
        encodingType: Camera.EncodingType.JPEG,
        targetWidth: 100,
        targetHeight: 100,
        popoverOptions: CameraPopoverOptions,
        saveToPhotoAlbum: false
    };

    $cordovaCamera.getPicture(options).then(function(imageData) {
      // Success! Image data is here
    }, function(err) {
      // An error occured. Show a message to the user
    });
  }

  myService.getFoo().then(function(data) {
   //this …
Run Code Online (Sandbox Code Playgroud)

android angularjs cordova yeoman ionic-framework

1
推荐指数
1
解决办法
7987
查看次数

在Ionic Framework(AngularJS)中获取并设置一个复选框

我需要跟踪用户何时更改Ionic中复选框的状态,将其保存到localStorage,然后再使用它再次加载 - 因此它会记住它们的设置.

我的切换代码如下所示:

<li class="item item-toggle">
     National Insurance {{ni_toggle}}
     <label class="toggle toggle-positive">
       <input type="checkbox" ng-model="ni_toggle" ng-click="updateLocalStorage()" id="has_national_insurance" name="has_national_insurance">
       <div class="track">
         <div class="handle"></div>
       </div>
     </label>
  </li>
Run Code Online (Sandbox Code Playgroud)

在我的控制器中,我有:

angular.module('starter.controllers', [])

.controller('SettingsCtrl', function($scope, $ionicPlatform) {
    $ionicPlatform.ready(function() {
    // Ready functions

    });

 $scope.updateLocalStorage = function() {

    window.localStorage.setItem( 'has_national_insurance', $scope.ni_toggle );
    console.log( $scope.ni_toggle );

}

})
Run Code Online (Sandbox Code Playgroud)

但是,它会以控制台的形式注销到控制台undefined.如果我明确设置$scope.ni_toggle = false;它将记录false,并且当我将复选框切换为on时不会更新为true.

编辑:

app.js:

// Ionic Starter App

// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' …
Run Code Online (Sandbox Code Playgroud)

javascript checkbox angularjs ionic-framework

1
推荐指数
1
解决办法
2万
查看次数