- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
更改开发 .cert
和 .mobileprovision
文件后,我在真实设备上运行 tns run ios
错误。我删除了 keychain-access
中的旧证书,然后双击 .cert
文件和 .mobileprovision
文件,我什至将 cli 和 tns-core-module 更新到最新版本,但仍然不起作用。
有人可以帮助我吗?
我用的是苹果电脑。cli版本是5.3.1xcode版本是10.1我的 package.json 在这里:
"nativescript": {
"id": "com.softbrain.discounteasy",
"tns-android": {
"version": "5.2.1"
},
"tns-ios": {
"version": "5.3.1"
}
},
"dependencies": {
"@angular/animations": "~7.1.0",
"@angular/common": "~7.1.0",
"@angular/compiler": "~7.1.0",
"@angular/core": "~7.1.0",
"@angular/forms": "~7.1.0",
"@angular/http": "~7.1.0",
"@angular/platform-browser": "~7.1.0",
"@angular/platform-browser-dynamic": "~7.1.0",
"@angular/router": "~7.1.0",
"@danvick/ngx-translate-nativescript-loader": "^2.0.0",
"@ngx-translate/core": "^11.0.1",
"crypto-js": "^3.1.9-1",
"nativescript-angular": "~7.1.0",
"nativescript-clipboard": "^1.1.7",
"nativescript-code-push": "^1.0.1",
"nativescript-exit": "^1.0.1",
"nativescript-feedback": "^1.3.5",
"nativescript-hex-string": "0.0.4",
"nativescript-imagepicker": "^6.1.2",
"nativescript-localstorage": "^2.0.0",
"nativescript-microsoft-appcenter": "^1.2.1",
"nativescript-plugin-firebase": "^8.0.1",
"nativescript-theme-core": "^1.0.4",
"nativescript-toast": "^1.4.6",
"nativescript-windowed-modal": "^5.0.6",
"reflect-metadata": "~0.1.8",
"rxjs": "~6.3.3",
"rxjs-compat": "^6.4.0",
"tns-core-modules": "^5.3.1",
"tns-platform-declarations": "^5.1.2",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular-devkit/core": "~7.1.0",
"@angular/cli": "^7.1.0",
"@angular/compiler-cli": "~7.1.0",
"@nativescript/schematics": "~0.4.0",
"@ngtools/webpack": "^7.1.4",
"nativescript-dev-sass": "^1.6.0",
"nativescript-dev-typescript": "~0.7.0",
"nativescript-dev-webpack": "^0.19.0",
"tns-android": "^5.1.0",
"tns-ios": "^5.1.1",
"typescript": "~3.1.1",
"uglifyjs-webpack-plugin": "^2.1.1"
},
这里是构建日志:
nativescript-plugin-firebase: /Users/softbraintechnologylimited/projects/DiscountEasyUI/platforms/ios/.pluginfirebaseinfo not found, forcing prepare!
nativescript-plugin-firebase: running release build or change in environment detected, forcing prepare!
Detected short imports in your application. Please note that short imports are deprecated since NativeScript 5.2.0. More information can be found in this blogpost https://www.nativescript.org/blog/say-goodbye-to-short-imports-in-nativescript
In file /Users/softbraintechnologylimited/projects/DiscountEasyUI/app/pages/tabs/home-page/home-page/home-page.component.ts line import * as application from 'application' is short import. Add tns-core-modules/ in front of the required/imported module.
In file /Users/softbraintechnologylimited/projects/DiscountEasyUI/app/shared/pipes/image-cache.pipe.ts line import { ImageSource, fromResource } from 'image-source' is short import. Add tns-core-modules/ in front of the required/imported module.
In file /Users/softbraintechnologylimited/projects/DiscountEasyUI/app/shared/pipes/image-cache.pipe.ts line import { Cache } from 'ui/image-cache' is short import. Add tns-core-modules/ in front of the required/imported module.
In file /Users/softbraintechnologylimited/projects/DiscountEasyUI/app/shared/pipes/image-cache.pipe.ts line import { isFileOrResourcePath, isDataURI } from 'utils/utils' is short import. Add tns-core-modules/ in front of the required/imported module.
Hook skipped because either bundling or livesync is in progress.
Hook skipped because either bundling or livesync is in progress.
Preparing project...
Successfully prepared plugin nativescript-angular for ios.
Successfully prepared plugin nativescript-clipboard for ios.
Successfully prepared plugin nativescript-code-push for ios.
Successfully prepared plugin nativescript-feedback for ios.
Successfully prepared plugin nativescript-hex-string for ios.
Successfully prepared plugin nativescript-imagepicker for ios.
Successfully prepared plugin nativescript-localstorage for ios.
Successfully prepared plugin nativescript-microsoft-appcenter for ios.
Successfully prepared plugin nativescript-plugin-firebase for ios.
Successfully prepared plugin nativescript-theme-core for ios.
Successfully prepared plugin nativescript-toast for ios.
Successfully prepared plugin nativescript-windowed-modal for ios.
Successfully prepared plugin tns-core-modules for ios.
Successfully prepared plugin nativescript-intl for ios.
Successfully prepared plugin nativescript-appversion for ios.
Successfully prepared plugin nativescript-zip for ios.
nativescript-permissions is not supported for ios.
Successfully prepared plugin nativescript-permissions for ios.
Successfully prepared plugin tns-core-modules-widgets for ios.
Installing pods...
Analyzing dependencies
Pre-downloading: `ISMessages` from `https://github.com/EddyVerbruggen/ISMessages.git`, commit `580ac8cab611e2f92ebdd62b2201f9dada36ccd4`
Downloading dependencies
Installing AppCenter (1.14.0)
Installing Firebase (5.16.0)
Installing FirebaseAnalytics (5.5.0)
Installing FirebaseAnalyticsInterop (1.2.0)
Installing FirebaseCore (5.2.0)
Installing FirebaseInstanceID (3.7.0)
Installing FirebaseMessaging (3.3.0)
Installing GoogleAppMeasurement (5.5.0)
Installing GoogleUtilities (5.5.0)
Installing ISMessages (1.2)
Installing Protobuf (3.7.0)
Installing QBImagePickerController (3.4.0)
Installing SSZipArchive (2.1.4)
Installing Toaster (2.0.4)
Installing nanopb (0.3.901)
Generating Pods project
Integrating client project
[!] Please close any current Xcode sessions and use `DiscountEasyUI.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There are 7 dependencies from the Podfile and 15 total pods installed.
Project successfully prepared (iOS)
Configure firebase
Android not installed, skipping CodePush hook.
Building project...
Xcode build...
2019-04-06 09:39:21.580 xcodebuild[1297:29067] DTDeviceKit: deviceType from df1b668dc0b68ae30113d5198979559ab1938293 was NULL
warning: Swift 3 mode has been deprecated and will be removed in a later version of Xcode. Please migrate "Toaster" to Swift 4.2 using "Convert > To Current Swift Syntax…" in the Edit menu. (in target 'Toaster')
warning: Swift 3 mode has been deprecated and will be removed in a later version of Xcode. Please migrate "Toaster" to Swift 4.2 using "Convert > To Current Swift Syntax…" in the Edit menu. (in target 'Toaster')
/Users/softbraintechnologylimited/projects/DiscountEasyUI/platforms/ios/Pods/Toaster/Sources/ToastCenter.swift:36:19: warning: static declarations are implicitly 'final'; use 'public' instead of 'open'
open static let `default` = ToastCenter()
~~~~ ^
public
/Users/softbraintechnologylimited/projects/DiscountEasyUI/platforms/ios/Pods/Toaster/Sources/ToastWindow.swift:24:19: warning: static declarations are implicitly 'final'; use 'public' instead of 'open'
open static let shared = ToastWindow(frame: UIScreen.main.bounds)
~~~~ ^
public
/Users/softbraintechnologylimited/projects/DiscountEasyUI/platforms/ios/Pods/Toaster/Sources/ToastCenter.swift:36:19: warning: static declarations are implicitly 'final'; use 'public' instead of 'open'
open static let `default` = ToastCenter()
~~~~ ^
public
/Users/softbraintechnologylimited/projects/DiscountEasyUI/platforms/ios/Pods/Toaster/Sources/ToastWindow.swift:24:19: warning: static declarations are implicitly 'final'; use 'public' instead of 'open'
open static let shared = ToastWindow(frame: UIScreen.main.bounds)
~~~~ ^
public
/Users/softbraintechnologylimited/projects/DiscountEasyUI/platforms/ios/Pods/Toaster/Sources/ToastWindow.swift:24:19: warning: static declarations are implicitly 'final'; use 'public' instead of 'open'
open static let shared = ToastWindow(frame: UIScreen.main.bounds)
~~~~ ^
public
/Users/softbraintechnologylimited/projects/DiscountEasyUI/platforms/ios/Pods/Toaster/Sources/ToastCenter.swift:36:19: warning: static declarations are implicitly 'final'; use 'public' instead of 'open'
open static let `default` = ToastCenter()
~~~~ ^
public
/Users/softbraintechnologylimited/projects/DiscountEasyUI/platforms/ios/Pods/Toaster/Sources/ToastCenter.swift:36:19: warning: static declarations are implicitly 'final'; use 'public' instead of 'open'
open static let `default` = ToastCenter()
~~~~ ^
public
/Users/softbraintechnologylimited/projects/DiscountEasyUI/platforms/ios/Pods/Toaster/Sources/ToastWindow.swift:24:19: warning: static declarations are implicitly 'final'; use 'public' instead of 'open'
open static let shared = ToastWindow(frame: UIScreen.main.bounds)
~~~~ ^
public
/Users/softbraintechnologylimited/projects/DiscountEasyUI/platforms/ios/Pods/Toaster/Sources/ToastCenter.swift:36:19: warning: static declarations are implicitly 'final'; use 'public' instead of 'open'
open static let `default` = ToastCenter()
~~~~ ^
public
/Users/softbraintechnologylimited/projects/DiscountEasyUI/platforms/ios/Pods/Toaster/Sources/ToastWindow.swift:24:19: warning: static declarations are implicitly 'final'; use 'public' instead of 'open'
open static let shared = ToastWindow(frame: UIScreen.main.bounds)
~~~~ ^
public
/Users/softbraintechnologylimited/projects/DiscountEasyUI/platforms/ios/Pods/Toaster/Sources/ToastWindow.swift:24:19: warning: static declarations are implicitly 'final'; use 'public' instead of 'open'
open static let shared = ToastWindow(frame: UIScreen.main.bounds)
~~~~ ^
public
/Users/softbraintechnologylimited/projects/DiscountEasyUI/platforms/ios/Pods/Toaster/Sources/ToastCenter.swift:36:19: warning: static declarations are implicitly 'final'; use 'public' instead of 'open'
open static let `default` = ToastCenter()
~~~~ ^
public
/Users/softbraintechnologylimited/projects/DiscountEasyUI/platforms/ios/Pods/ISMessages/ISMessages/Classes/ISMessages.m:198:1: warning: conflicting return type in
implementation of 'accessibilityPerformEscape': 'BOOL' (aka 'signed char') vs 'bool' [-Wmismatched-return-types]
- (bool)accessibilityPerformEscape {
^ ~~~~
In module 'UIKit' imported from /Users/softbraintechnologylimited/projects/DiscountEasyUI/platforms/ios/Pods/Target Support Files/ISMessages/ISMessages-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibility.h:276:1: note:
previous definition is here
- (BOOL)accessibilityPerformEscape NS_AVAILABLE_IOS(5_0);
^ ~~~~
1 warning generated.
note: Using new build systemnote: Planning buildnote: Constructing build description
Xcode build...
2019-04-06 09:40:04.685 xcodebuild[3913:36112] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/qx/nqzfs3217731kb43q_pcpvfh0000gn/T/DiscountEasyUI_2019-04-06_09-40-04.685.xcdistributionlogs'.
Exported DiscountEasyUI to: /Users/softbraintechnologylimited/projects/DiscountEasyUI/platforms/ios/build/Debug-iphoneos
Project successfully built.
Installing on device df1b668dc0b68ae30113d5198979559ab1938293...
Unable to apply changes on device: df1b668dc0b68ae30113d5198979559ab1938293. Error is: Failed to install /Users/softbraintechnologylimited/projects/DiscountEasyUI/platforms/ios/build/Debug-iphoneos/DiscountEasyUI.ipa on device with identifier df1b668dc0b68ae30113d5198979559ab1938293. Error is: Could not install application.
最佳答案
该设备是否包含在该配置文件中?将配置文件拖到 TextEdit 应用程序并查找:
<key>ProvisionedDevices</key>
是df1b668dc0b68ae30113d5198979559ab1938293
之后列出?如果没有,请在 Apple 开发人员门户中更新配置文件以包含您的设备。然后,使用更新的配置文件重试。
我能想到的不安装应用程序的唯一其他原因是设备不满足最低要求;例如,如果设备的 iOS 版本低于应用程序的最低部署版本。
要查看有关安装失败的更多信息,请打开控制台应用程序(不是终端),将解锁的手机连接到计算机,然后在控制台应用程序。尝试再次安装该应用程序。
在控制台窗口顶部的“搜索”框中,输入应用程序的名称,然后按 Enter 键以根据该名称过滤日志。
您将看到大量包含有关安装详细信息的文本。它看起来像这样,但应该在某处指示错误:
default 23:04:32.280735 -0400 streaming_zip_conduit com.mycompany.SuperApp:5:1:1:1:Beginning installation for file:///var/mobile/Media/PublicStaging/SuperApp.app/ with options {
AllowInstallLocalProvisioned = 1;
CFBundleIdentifier = "com.mycompany.SuperApp";
DisableDeltaTransfer = 1;
InstallDeltaTypeKey = InstallDeltaTypeSparseIPAFiles;
IsUserInitiated = 1;
PackageType = Developer;
}
default 23:04:32.288006 -0400 lsd com.mycompany.SuperApp:5:1:1:1:Ininstall file:///var/mobile/Media/PublicStaging/SuperApp.app/ with options {
AllowInstallLocalProvisioned = 1;
CFBundleIdentifier = "com.mycompany.SuperApp";
DisableDeltaTransfer = 1;
InstallDeltaTypeKey = InstallDeltaTypeSparseIPAFiles;
IsUserInitiated = 1;
PackageType = Developer;
}
default 23:04:32.289279 -0400 lsd com.mycompany.SuperApp:5:1:1:1:Ininstall file:///var/mobile/Media/PublicStaging/SuperApp.app/ with options {
AllowInstallLocalProvisioned = 1;
CFBundleIdentifier = "com.mycompany.SuperApp";
DisableDeltaTransfer = 1;
InstallDeltaTypeKey = InstallDeltaTypeSparseIPAFiles;
IsUserInitiated = 1;
PackageType = Developer;
}
default 23:04:32.292304 -0400 installd 0x16b15f000 -[MIClientConnection _doInstallationForURL:withOptions:completion:]: Install of "/var/mobile/Media/PublicStaging/SuperApp.app" type Developer (LSInstallType = (null)) requested by lsd (pid 31819)
default 23:04:32.306147 -0400 assertiond Request to create termination assertion <BKSTerminationAssertionCreateEvent: 0x105ec9a00; Identifier: 29899-552C42A1-9731-49B7-B96B-41A0B2D360AB; Name: FBSApplicationTerminationAssertion; Target BundleID: com.mycompany.SuperApp; Efficacy: Unconditional> from client <BKClientHandle: 0x105f0da40; installd:29899; connections: 1>
default 23:04:32.309880 -0400 SpringBoard termination assertion efficacy for com.mycompany.SuperApp (app not found) changed to 3
default 23:04:32.310150 -0400 installd Acquired termination assertion for event <BKSTerminationAssertionCreateEvent: 0x10a802170; Identifier: 29899-552C42A1-9731-49B7-B96B-41A0B2D360AB; Name: FBSApplicationTerminationAssertion; Target BundleID: com.mycompany.SuperApp; Efficacy: Unconditional>
default 23:04:32.321511 -0400 installd 0x16b15f000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.mycompany.SuperApp; Version=1, ShortVersion=1.0>
default 23:04:32.321804 -0400 installd com.mycompany.SuperApp:7:5:1:1:Start : Install (New)
default 23:04:32.822905 -0400 installd 0x16b15f000 -[MIContainer makeContainerLiveReplacingContainer:reason:waitForDeletion:withError:]: Made container live for com.mycompany.SuperApp at /private/var/mobile/Containers/Data/Application/E18E5DFA-A7E2-4B20-AA88-571213D25CA4
default 23:04:32.827238 -0400 installd 0x16b15f000 -[MIContainer makeContainerLiveReplacingContainer:reason:waitForDeletion:withError:]: Made container live for com.mycompany.SuperApp at /private/var/containers/Bundle/Application/53C45EA1-44C3-4AAE-BD6E-72EE3F82B8BA
default 23:04:32.859543 -0400 installd com.mycompany.SuperApp:7:5:2:1:Success (End) : Install (New)
default 23:04:32.859738 -0400 installd 0x16b15f000 -[MIInstaller performInstallationWithError:]: Install Successful for (Developer:com.mycompany.SuperApp); Staging: 0.01s; Waiting: 0.00s; Preflight/Patch: 0.01s, Verifying: 0.46s; Overall: 0.57s
那里应该有更多线索。
关于ios - 无法在 iOS 真实设备上应用设备上的更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55554980/
IO 设备如何知道属于它的内存中的值在memory mapped IO 中发生了变化? ? 例如,假设内存地址 0 专用于保存 VGA 设备的背景颜色。当我们更改 memory[0] 中的值时,VGA
我目前正在开发一个使用Facebook sdk登录(通过FBLoginView)的iOS应用。 一切正常,除了那些拥有较旧版本的facebook的人。 当他们按下“使用Facebook登录”按钮时,他
假设我有: this - is an - example - with some - dashesNSRange将使用`rangeOfString:@“-”拾取“-”的第一个实例,但是如果我只想要最后
Card.io SDK提供以下详细信息: 卡号,有效期,月份,年份,CVV和邮政编码。 如何从此SDK获取国家名称。 - (void)userDidProvideCreditCardInfo:(Car
iOS 应用程序如何从网络服务下载图片并在安装过程中将它们安装到用户的 iOS 设备上?可能吗? 最佳答案 您无法控制应用在用户设备上的安装,因此无法在安装过程中下载其他数据。 只需在安装后首次启动应
我曾经开发过一款企业版 iOS 产品,我们公司曾将其出售给大型企业,供他们的员工使用。 该应用程序通过 AppStore 提供,企业用户获得了公司特定的配置文件(包含应用程序配置文件)以启用他们有权使
我正在尝试将 Card.io SDK 集成到我的 iOS 应用程序中。我想为 CardIO ui 做一个简单的本地化,如更改取消按钮标题或“在此保留信用卡”提示文本。 我在 github 上找到了这个
我正在使用 CardIOView 和 CardIOViewDelegate 类,没有可以设置为 YES 的 BOOL 来扫描 collectCardholderName。我可以看到它在 CardIOP
我有一个集成了通话工具包的 voip 应用程序。每次我从我的 voip 应用程序调用时,都会在 native 电话应用程序中创建一个新的最近通话记录。我在 voip 应用程序中也有自定义联系人(电话应
iOS 应用程序如何知道应用程序打开时屏幕上是否已经有键盘?应用程序运行后,它可以接收键盘显示/隐藏通知。但是,如果应用程序在分屏模式下作为辅助应用程序打开,而主应用程序已经显示键盘,则辅助应用程序不
我在模拟器中收到以下错误: ImageIO: CGImageReadSessionGetCachedImageBlockData *** CGImageReadSessionGetCachedIm
如 Apple 文档所示,可以通过 EAAccessory Framework 与经过认证的配件(由 Apple 认证)进行通信。但是我有点困惑,因为一些帖子告诉我它也可以通过 CoreBluetoo
尽管现在的调试器已经很不错了,但有时找出应用程序中正在发生的事情的最好方法仍然是古老的 NSLog。当您连接到计算机时,这样做很容易; Xcode 会帮助弹出日志查看器面板,然后就可以了。当您不在办公
在我的 iOS 应用程序中,我定义了一些兴趣点。其中一些有一个 Kontakt.io 信标的名称,它绑定(bind)到一个特定的 PoI(我的意思是通常贴在信标标签上的名称)。现在我想在附近发现信标,
我正在为警报提示创建一个 trigger.io 插件。尝试从警报提示返回数据。这是我的代码: // Prompt + (void)show_prompt:(ForgeTask*)task{
您好,我是 Apple iOS 的新手。我阅读并搜索了很多关于推送通知的文章,但我没有发现任何关于 APNS 从 io4 到 ios 6 的新更新的信息。任何人都可以向我提供 APNS 如何在 ios
UITabBar 的高度似乎在 iOS 7 和 8/9/10/11 之间发生了变化。我发布这个问题是为了让其他人轻松找到答案。 那么:在 iPhone 和 iPad 上的 iOS 8/9/10/11
我想我可以针对不同的 iOS 版本使用不同的 Storyboard。 由于 UI 的差异,我将创建下一个 Storyboard: Main_iPhone.storyboard Main_iPad.st
我正在写一些东西,我将使用设备的 iTunes 库中的一部分音轨来覆盖 2 个视频的组合,例如: AVMutableComposition* mixComposition = [[AVMutableC
我创建了一个简单的 iOS 程序,可以顺利编译并在 iPad 模拟器上运行良好。当我告诉 XCode 4 使用我连接的 iPad 设备时,无法编译相同的程序。问题似乎是当我尝试使用附加的 iPad 时
我是一名优秀的程序员,十分优秀!