【ios8】dyld: program was built for Mac OS X and cannot be run in simulator
2014-10-14 14:36
477 查看
程序在iOS8模拟器里面运行,报错:
dyld: program was built for Mac OS X and cannot be run in simulator
这个提示信息太模糊了,把编译选项和各种库检查了一遍没有解决,然后下载了ios7模拟器,报错:
sh: ls command not found
原来是某个地方调用了sh: ls,查到是在lua代码中使用os.execute执行了shell命令。
看来是不能通过os.execute在ios平台上执行shell命令了。改掉后报错消失了。
这个bug郁闷了我好几个小时,直到换成ios7模拟器才找到了原因,因为不是自己写的代码不熟悉,而win32版本没问题,所以一直在编译选项上折腾,没想到是lua代码中的系统调用出了问题。另外也是由于对dyld这个东西不熟悉,不知道可能出错的原因。但是ios7模拟器的报错多么直接啊,ios8真搞不懂
dyld: program was built for Mac OS X and cannot be run in simulator
这个提示信息太模糊了,把编译选项和各种库检查了一遍没有解决,然后下载了ios7模拟器,报错:
sh: ls command not found
原来是某个地方调用了sh: ls,查到是在lua代码中使用os.execute执行了shell命令。
看来是不能通过os.execute在ios平台上执行shell命令了。改掉后报错消失了。
这个bug郁闷了我好几个小时,直到换成ios7模拟器才找到了原因,因为不是自己写的代码不熟悉,而win32版本没问题,所以一直在编译选项上折腾,没想到是lua代码中的系统调用出了问题。另外也是由于对dyld这个东西不熟悉,不知道可能出错的原因。但是ios7模拟器的报错多么直接啊,ios8真搞不懂
相关文章推荐
- Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additio
- cannot be run because the program file for 00100003 cannot be located on a distribution point
- “System.IO.FileLoadException: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 错误
- 【Link】Building for MacOSX, but linking against dylib built for iOS Simulator file
- 安装SDK遇到的问题Setup cannot be run in Program Compatibility Mode
- Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additio
- Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration info
- VC中改变PE文件中Dos Stub程序(显示This program cannot be run in DOS mode)那一段程序.
- The project was not built due to "Could not delete ...".Fix the problem, then try refreshing this project and building it since it may be inconsistent.
- 解决安装windows phone developer tools遇到的问题Setup cannot be run in Program Compatibility Mode
- How to uninstall CUDA driver and toolkit in Mac OS X?
- Using openCV for Mac OS in XCode
- How to Enable and Run a Payables Concurrent Program in Debug Mode
- Nib Files and NSWindowController(Chapter 12 of Cocoa Programming for Mac OS X)
- Images and Mouse Events(Chapter 18 of Cocoa Programming for Mac OS X)
- Exception in thread "main" java.io.IOException: Cannot run program "XX": CreateProcess error
- Drag-and-Drop(Chapter 23 of Cocoa Programming for Mac OS X)
- Eclipse启动时报错:A Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No java virtual machine was found after searching the following locations:…
- One or more breakpoints cannot be set and have been disabled.Execution will stop at the beginning of the program
- 解决"the database principal owns a schema in the database and cannot be dropped"问题