简体   繁体   English

在iOS设备上运行但不在模拟器中运行时,SIGABRT错误

[英]SIGABRT Error when running on an iOS device but not in simulator

The app initially loads a local webpage, I can see the below error in the log. 该应用最初加载了本地网页,我可以在日志中看到以下错误。 Am I right in thinking that this means the webpage is not being copied accros to the device? 我是否认为这意味着该网页没有被复制到该设备上,对吗?

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSURL initFileURLWithPath:]: nil string parameter'
*** First throw call stack:
(0x3572088f 0x33344259 0x35720789 0x357207ab 0x34abd05f 0x34abcffb 0x79145 0x32e59c8b 0x32eb963d 0x32eb95db 0x32eb8f15 0x32eb8c49 0x78bd5 0x32e58cab 0x32e527dd 0x32e20ac3 0x32e20567 0x32e1ff3b 0x3341222b 0x356f4523 0x356f44c5 0x356f3313 0x356764a5 0x3567636d 0x32e5186b 0x32e4ecd5 0x78a25 0x78628)
terminate called throwing an exception(lldb)

How can I fix this? 我怎样才能解决这个问题?

It would be easier if you also posted the code that created the file url. 如果您还发布了创建文件url的代码,将会更容易。

Just looking at the error check if you have written the filename correctly when you created the URL. 仅查看错误检查,即可在创建URL时正确写入文件名。 Simulator is key insensitive but the device is key sensitive. 模拟器对密钥不敏感,但是设备对密钥不敏感。 So on simulator x.png and X.png are the same thing but on the device they are different 因此,在模拟器x.png和X.png上是同一件事,但在设备上它们是不同的

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ios模拟器上的SIGABRT错误 - SIGABRT error on ios simulator Object-c / iOS:程序在模拟器上运行正常,但在安装到设备时得到“ SIGABRT”? - Object-c/iOS :Program urns fine on simulator but got “SIGABRT” when install to device? iOS - AudioUnitRender 在设备上返回错误 -10876,但在模拟器中运行良好 - iOS - AudioUnitRender returned error -10876 on device, but running fine in simulator 在iOS设备(而非模拟器)上运行时,从CGRectMake获取异常 - Getting an exception from CGRectMake when running on iOS device (but not simulator) 在设备上进行测试时发出信号SIGABRT,可在模拟器上运行。 简易代码 - signal SIGABRT when testing on device, it works on simulator. Easy code 在ipod touch上而不是模拟器上运行时。“程序收到信号SIGABRT” - When running on ipod touch, not simulator.. 'program received signal SIGABRT' 编译到iOS设备时出现“可变未声明”错误,但不适用于模拟器 - “Variable Undeclared” error when compiling to iOS Device, but not for Simulator iOS:在设备中安装时,CMPedometer / Framework错误,它在模拟器中运行 - iOS : CMPedometer / Framework Error when install in device, it's run in simulator iOS 应用程序在设备上自行运行时崩溃,在使用调试器或在模拟器中通过 Xcode 运行时不会崩溃 - iOS App Crashes when running by itself on device, does not crash when running through Xcode using debugger, or in simulator iOS5-应用在模拟器上运行但在设备上崩溃 - IOS5 - App running on Simulator but crashing on device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM