Meteor 开发人员 - 有没有人修复 Meteor 无法在 iOS 10 iPhone 6 Plus 上运行的问题?

Posted

技术标签:

【中文标题】Meteor 开发人员 - 有没有人修复 Meteor 无法在 iOS 10 iPhone 6 Plus 上运行的问题?【英文标题】:Meteor developer - Does anyone have a fix for Meteor not running on iOS 10 iPhone 6 Plus? 【发布时间】:2016-09-17 17:49:33 【问题描述】:

我已将我的 iPhone 6 Plus 升级到 ios 10,XCode 升级到 8.0,并且还运行了以下流星命令:

流星添加cordova:cordova-plugin-meteor-webapp@https://github.com/meteor/cordova-plugin-meteor-webapp.git#8bf95eed3f313299fc2de33658866278eea2cdc5

然后我运行:

meteor 运行 ios-device --mobile-server localhost:3000

该应用程序部署到我的 iPhone 6 Plus (iOS 10),但是当我运行该应用程序时,它会显示流星徽标/启动画面并立即关闭。

当我在带有 SWIFT 3 的 XCode 8.0 和带有 iOS 1.0 的 iPhone 6 Plus 的 Target 中编译时

我收到以下错误消息:

Deprecations Group
/Users/brianthanhnguyen/dev/MyApp/.meteor/local/cordova-build/platforms/ios/MyApp/Plugins/cordova-plugin-wkwebview-engine/CDVWKWebViewEngine.m:277:91: 'stringByAddingPercentEscapesUsingEncoding:' is deprecated: first deprecated in iOS 9.0 - Use -stringByAddingPercentEncodingWithAllowedCharacters: instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent since each URL component or subcomponent has different rules for what characters are valid.
/Users/brianthanhnguyen/dev/MyApp/.meteor/local/cordova-build/platforms/ios/MyApp/Plugins/cordova-plugin-statusbar/CDVStatusBar.m:272:44: 'setStatusBarStyle:' is deprecated: first deprecated in iOS 9.0 - Use -[UIViewController preferredStatusBarStyle]
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:440:50: Property 'statusBarStyle' is declared deprecated here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:440:50: 'setStatusBarStyle:' has been explicitly marked deprecated here
/Users/brianthanhnguyen/dev/MyApp/.meteor/local/cordova-build/platforms/ios/MyApp/Plugins/cordova-plugin-statusbar/CDVStatusBar.m:369:14: 'setStatusBarHidden:' is deprecated: first deprecated in iOS 9.0 - Use -[UIViewController prefersStatusBarHidden]
/Users/brianthanhnguyen/dev/MyApp/.meteor/local/cordova-build/platforms/ios/MyApp/Plugins/cordova-plugin-statusbar/CDVStatusBar.m:401:14: 'setStatusBarHidden:' is deprecated: first deprecated in iOS 9.0 - Use -[UIViewController prefersStatusBarHidden]
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:444:63: Property 'statusBarHidden' is declared deprecated here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:444:63: 'setStatusBarHidden:' has been explicitly marked deprecated here
/Users/brianthanhnguyen/dev/MyApp/.meteor/local/cordova-build/platforms/ios/MyApp/Plugins/cordova-plugin-statusbar/CDVStatusBar.m:460:48: 'applicationFrame' is deprecated: first deprecated in iOS 9.0 - Use -[UIScreen bounds]
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:76:38: Property 'applicationFrame' is declared deprecated here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:76:38: 'applicationFrame' has been explicitly marked deprecated here
/Users/brianthanhnguyen/dev/MyApp/.meteor/local/cordova-build/platforms/ios/MyApp/Plugins/cordova-plugin-statusbar/CDVStatusBar.m:369:14: 'setStatusBarHidden:' is deprecated: first deprecated in iOS 9.0 - Use -[UIViewController prefersStatusBarHidden]
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:444:63: Property 'statusBarHidden' is declared deprecated here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:444:63: 'setStatusBarHidden:' has been explicitly marked dep

【问题讨论】:

【参考方案1】:

Meteor Forum 上有一个关于这个的帖子。

为了让它工作,我不得不删除.meteor/cordova-build 并运行:

meteor add cordova:cordova-plugin-meteor-webapp@https://github.com/meteor/cordova-plugin-meteor-webapp.git#8bf95eed3f313299fc2de33658866278eea2cdc5

请关注此Git repo 以获取更多更新。

【讨论】:

以上是关于Meteor 开发人员 - 有没有人修复 Meteor 无法在 iOS 10 iPhone 6 Plus 上运行的问题?的主要内容,如果未能解决你的问题,请参考以下文章

如何为某些用户修复 Testflight “没有可用的构建”

postgres数据库备份脚本

Meteor 中布局模板的最佳实践?

如何在没有 Meteor 的情况下获得 Meteor 的路由/即时换页效果?

使用 Backbone 路由器重新渲染 Meteor 页面

Meteor 在哪里存储它的数据?