首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >应用程序商店发行版无法加载

应用程序商店发行版无法加载
EN

Stack Overflow用户
提问于 2014-04-04 00:57:15
回答 1查看 692关注 0票数 0

我刚刚向应用程序商店发布了我最新的PhoneGap版本,现在当我下载它时,它无法加载,只显示了启动屏幕和旋转器。除了在打开控制台的情况下运行错误之外,我不知道如何收集错误。此外,在组织者下没有崩溃日志。

我还检查了福利和aps-环境正在生产。

唯一的错误是这个,我不知道它意味着什么:The 'Passive' connection 'MYAPP' access to protected services is denied.

我收集了所有的证书(我希望如此),并在dev中心的App上启用了推送通知。我的本地建筑一切都很好。

在启动时,控制台上有:

代码语言:javascript
复制
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

暂停文本流,应用程序启动屏幕正在旋转。

代码语言:javascript
复制
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:)添加的不同之处。

代码语言:javascript
复制
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);
}

platforms/ios/Blonk/Classes/MainViewController.m

代码语言:javascript
复制
  #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];
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-05-15 18:45:08

问题最后是代码签名配置文件。

我将Xcode升级到5.1,这在为5s构建时破坏了PhoneGap。我将其降级为5.0,发布代码签名被切换回“developer”。当时,我没有使用TestFlight来确保我提交的二进制文件正在运行。我天真地认为dev的构建和应用程序商店的构建是一样的。我能够在TestFlight上使用糟糕的构建复制白屏幕问题,使用适当配置文件的新构建在TestFlight上和应用程序商店中都能正常工作。

如果尚未完成,请在构建完成后(我将在TestFlight上进行测试)请求快速检查。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22851653

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档