2016-09-17 15:16:04.386085 appDemo[2371:94976] [] __nwlog_err_simulate_crash simulate crash already simulated **"nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available"**
2016-09-17 15:16:04.386676 appDemo[2371:94976] [] nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available, dumping backtrace:
[x86_64] libnetcore-856.1.8
0 libsystem_network.dylib 0x0000000112dc780e __nw_create_backtrace_string + 123
1 libnetwork.dylib 0x0000000113bfa194 nw_socket_add_input_handler + 3002
2 libnetwork.dylib 0x0000000113bd7db8 nw_endpoint_flow_attach_protocols + 3768
3 libnetwork.dylib 0x0000000113bd6dd5 nw_endpoint_flow_setup_socket + 563
4 libnetwork.dylib 0x0000000113bd5b34 -[NWConcrete_nw_endpoint_flow startWithHandler:] + 2612
5 libnetwork.dylib 0x0000000113bf0d11 nw_endpoint_handler_path_change + 1261
6 libnetwork.dylib 0x0000000113bf0740 nw_endpoint_handler_start + 570
7 libdispatch.dylib 0x0000000112b44980 _dispatch_call_block_and_release …
Run Code Online (Sandbox Code Playgroud) 出于某种原因,在Xcode 8.2中,我的代码完成已停止工作.我已经清理了我的产品,重新启动了Xcode,重新启动了我的计算机,并删除了派生数据,但仍然没有运气.我已将此提交给Apple支持.有没有人遇到这个并且能够修复它?
更新到Xcode 8.2后,编译器会为我的App目标抛出一个错误:
__PRE__
但是它应该适用No
于我拥有的所有目标.试图删除派生数据,清理项目目录,重新启动Xcode.什么都没有帮助.有人想出来吗?
//编辑
只是为了确定:我已经设置了所有我的目标Use Legacy Swift Language Version
,No
并且在Xcode 8.1中编译时项目工作正常.更新到Xcode 8.2后它不起作用.
//编辑21.12.
该问题已在Xcode 8.2.1中修复
我正在尝试在设备(iphone 5s)上运行我的应用程序,当设备尝试运行我的应用程序时出现此错误.然后它只显示白色屏幕.我的设备出了什么问题?当我使用模拟器时,我的代码工作正常.
任何帮助,将不胜感激!
我正在使用xcode 8.2.1.第一次或刚从模拟器中删除应用程序后,它工作正常.但是从第二次我得到以下错误!
我尝试从以下链接解决我的问题,但这些也不适合我.
无法在模拟器中运行应用程序:Xcode beta 6 iOS 8
还有其他方法吗?
我正在使用Fabric/Crashlytics为Beta测试人员部署应用程序.几周以来一切都运行正常,但是对于一个版本,当测试人员尝试安装应用程序时,会显示以下错误消息:
无法下载:此时无法安装APP_NAME [完成/重试选项]
到目前为止排除故障:
附加信息:
有关进一步故障排除的建议
我正在关注firebase提供的sampler项目. Firebase云消息传递
我的应用代表是
import UIKit
import Firebase
import FirebaseMessaging
import UserNotifications
import FirebaseInstanceID
//add firebase code app delegate code
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
let gcmMessageIDKey = "gcm.message_id"
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
// Register for remote notifications. This shows a permission dialog on first run, to
// show the dialog at a more appropriate time move this registration accordingly.
// [START …
Run Code Online (Sandbox Code Playgroud) 以前所有的对话框和textField都运行良好.但不是我不知道这些TextFields如何突然变为单行三联.(就像这里的一些消息......)
let alert = UIAlertController(title: "Cancel Booking !!", message: "Are you sure you want to cancel your booking?", preferredStyle: .alert)
alert.addAction(UIAlertAction(title: "No", style: .default, handler: nil))
alert.addAction(UIAlertAction(title: "Yes", style: .default, handler: self.cancelMessageDialog))
self.present(alert, animated: true, completion: nil)
Run Code Online (Sandbox Code Playgroud)
我有NavigationController处理我的应用程序导航.根据我的设计,第一个视图应该没有可见的NavigationBar.所有其他人之后,将会.
在这个FirstView中,我到目前为止使用它来隐藏ViewDidLoad中的NavBar:
self.navigationController?.isNavigationBarHidden = true
Run Code Online (Sandbox Code Playgroud)
从这个FirstView我可以访问其他视图.在这些其他视图中,我使用以下命令显示NavBar:
self.navigationController?.isNavigationBarHidden = false
Run Code Online (Sandbox Code Playgroud)
我的问题是:
我怎么能防止这个?
谢谢!
xcode8.2 ×10
ios ×6
swift3 ×4
xcode ×3
ios10.2 ×2
crashlytics ×1
firebase ×1
ios10 ×1
iphone ×1
objective-c ×1
swift3.0.2 ×1
uitextfield ×1
xcode8 ×1