IOS_XCODE6_beta7(An error was encountered while running (Domain = NSPOSIXErrorDomain, Code = 22)

突然啊不能在模拟器运行(后来证实是因为我建立的空工程拖动添加资源因起的),而之前的其它工程可以,如下图

An error was encountered while running (Domain = NSPOSIXErrorDomain, Code = XXX),

或者报错The application does not have a valid signature.可以偿试如下


IOS_XCODE6_beta7(An error was encountered while running (Domain = NSPOSIXErrorDomain, Code = 22)_第1张图片

解决方法:

1、清除当前工程

IOS_XCODE6_beta7(An error was encountered while running (Domain = NSPOSIXErrorDomain, Code = 22)_第2张图片


2、关闭XCODE

3、终端进入: 

/Users/fuyun/Library/Developer/Xcode/DerivedData

 rm -rf *

4、打开XCODE重新编译,到此发现可以在模拟器运行了。



你可能感兴趣的:(IOS)