我刚刚将最新的PhoneGap版本发布到应用程序商店,现在当我下载它时,它无法加载,只显示启动画面和微调器。我不确定如何收集错误,除了在打开控制台的情况下运行它。此外,组织者下没有崩溃日志。
我还检查了权利,aps-enviroment正在制作中。
唯一的错误是这个,我无法弄清楚它的含义:The 'Passive' connection 'MYAPP' access to protected services is denied.
我收集了所有证书(我希望),并在开发中心的App ID上启用了推送通知。在我的本地构建中一切正常。
启动时来自控制台:
Apr 3 17:38:42 Adams-iPhone kernel[0] <Debug>: launchd[3035] Container: /private/var/mobile/Applications/D79CBF76-D2DE-49E2-8021-BDA8EFB7EC0E (sandbox)
Apr 3 17:38:42 Adams-iPhone backboardd[31] <Error>: HID: The 'Passive' connection 'MYAPP' access to protected services is denied.
Apr 3 17:38:42 Adams-iPhone MYAPP[3035] <Warning>: Multi-tasking -> Device: YES, App: YES
Apr 3 17:38:42 Adams-iPhone MYAPP[3035] <Warning>: Unlimited access to network resources
Apr 3 17:38:42 Adams-iPhone MYAPP[3035] <Warning>: [CDVTimer][splashscreen] 10.690987ms
Apr 3 17:38:42 Adams-iPhone MYAPP[3035] <Warning>: [CDVTimer][splashscreen] 0.021994ms
Apr 3 17:38:42 Adams-iPhone MYAPP[3035] <Warning>: [CDVTimer][TotalPluginStartup] 12.279987ms
Apr 3 17:38:42 Adams-iPhone wifid[40] <Notice>: WiFi:[418264722.812325]: Client itunesstored set type to normal application
Apr 3 17:38:42 Adams-iPhone wifid[40] <Notice>: WiFi:[418264722.812654]: BG Application: Not Present, BG Daemon: Present. Daemons: networkd sharingd SiriViewService apsd lockdownd assistantd
Apr 3 17:38:42 Adams-iPhone MYAPP[3035] <Warning>: Resetting plugins due to page load.
Apr 3 17:38:42 Adams-iPhone wifid[40] <Notice>: WiFi:[418264722.892555]: WiFi unquiescing requested by "locationd"
Apr 3 17:38:42 Adams-iPhone MYAPP[3035] <Warning>: appDel.globalToken :<123 456 token here 789>
Apr 3 17:38:42 Adams-iPhone MYAPP[3035] <Warning>: Finished load of: file:///var/mobile/Applications/D79CBF76-D2DE-49E2-8021-BDA8EFB7EC0E/MYAPP.app/www/index.html
在文字流中暂停,应用程序启动画面正在旋转
Apr 3 17:38:52 Adams-iPhone mstreamd[3033] <Notice>: (Note ) mstreamd: Not monitoring for external power.
Apr 3 17:38:52 Adams-iPhone mstreamd[3033] <Notice>: (Note ) PS: Media stream daemon stopping.
Apr 3 17:38:52 Adams-iPhone mstreamd[3033] <Notice>: (Note ) AS: <MSIOSAlbumSharingDaemon: 0x14c6213d0>: Shared Streams daemon has shut down.
Apr 3 17:38:52 Adams-iPhone mstreamd[3033] <Notice>: (Warn ) mstreamd: mstreamd shutting down.
Apr 3 17:38:52 Adams-iPhone mstreamd[3037] <Notice>: (Note ) mstreamd: mstreamd starting up.
Apr 3 17:38:52 Adams-iPhone mstreamd[3037] <Notice>: (Note ) PS: Media stream daemon starting...
Apr 3 17:38:56 Adams-iPhone wifid[40] <Notice>: WiFi:[418264736.223622]: WiFi unquiescing requested by "locationd"
Apr 3 17:39:32 Adams-iPhone mstreamd[3037] <Notice>: (Note ) mstreamd: Not monitoring for external power.
Apr 3 17:39:32 Adams-iPhone mstreamd[3037] <Notice>: (Note ) PS: Media stream daemon stopping.
Apr 3 17:39:32 Adams-iPhone mstreamd[3037] <Notice>: (Note ) AS: <MSIOSAlbumSharingDaemon: 0x13ce433b0>: Shared Streams daemon has shut down.
Apr 3 17:39:32 Adams-iPhone mstreamd[3037] <Notice>: (Warn ) mstreamd: mstreamd shutting down.
Apr 3 17:39:32 Adams-iPhone mstreamd[3038] <Notice>: (Note ) mstreamd: mstreamd starting up.
Apr 3 17:39:32 Adams-iPhone mstreamd[3038] <Notice>: (Note ) PS: Media stream daemon starting...
Apr 3 17:39:46 Adams-iPhone wifid[40] <Notice>: WiFi:[418264786.075727]: WiFi unquiescing requested by "locationd"
Apr 3 17:39:57 Adams-iPhone wifid[40] <Notice>: WiFi:[418264797.335924]: WiFi unquiescing requested by "locationd"
还有一些来自push的补充:(taken from this post:)
platforms/ios/Blonk/Classes/AppDelegate.m
@synthesize globalToken = _globalToken;
- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
{
// Let the device know we want to receive push notifications
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:
(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];
CGRect screenBounds = [[UIScreen mainScreen] bounds];
#if __has_feature(objc_arc)
@@ -87,10 +94,28 @
// TODO dump device token to console
- (void)application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken
{
// NSLog(@"My token is: %@", deviceToken);
_globalToken = deviceToken;
// NSString* jsString = [NSString stringWithFormat:@"alert('push:ios %@')", deviceToken];
// [self.viewController.webView stringByEvaluatingJavaScriptFromString:jsString];
}
// Dump error message
- (void)application:(UIApplication*)application didFailToRegisterForRemoteNotificationsWithError:(NSError*)error
{
NSLog(@"Failed to get token, error: %@", error);
}
平台/ IOS / Blonk /类别/ MainViewController.m
#import "AppDelegate.h"
AppDelegate * appDel = (AppDelegate *) [[UIApplication sharedApplication] delegate];
NSLog(@"appDel.globalToken :%@", appDel.globalToken);
NSString* jsString = [NSString stringWithFormat:@"__IOS_TOKEN__ = '%@';", appDel.globalToken];
[theWebView stringByEvaluatingJavaScriptFromString:jsString];
答案 0 :(得分:0)
问题最终成为代码签名配置文件。
我将Xcode升级到5.1,在建立5s时打破了PhoneGap。我降级到5.0并且发布代码签名被切换回'开发者'。当时我没有使用TestFlight来确保我提交的二进制文件正在运行。我天真地认为开发构建与app store构建相同。我能够使用TestFlight上的错误构建来复制白屏问题,并且具有正确配置文件的新版本可以在TestFlight以及应用程序商店中运行。
如果您还没有,请在完成工作后请求加急审核(我会在TestFlight上进行测试)。