崩溃提示1.
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386).
解决办法
build active architecture only改成NO,architectures自定义添加armv7,armv7s,valid architectures也是armv7,armv7s应该就能解决在64位系统上运行问题
崩溃提示2.
运行程序报错
ld: file not found: ~/Library/Developer/Xcode/DerivedData/xxx-fxhqtzymbwegttddoznsqpakmlvp/Build/Products/Debug-iphonesimulator/xxx.app/xxx
clang: error: linker command failed with exit code 1 (use -v to see invocation)
clean 项目后 删除DerivedData后 重启Xcode不起作用
2种解决办法
1)左击工程文件:
选择Edit Scheme
把红色圈住的去掉就ok了
2)Proj->BuildingSetting-搜应用名 ->Product Name更改为和 Executable file一致(proj->info->Executable file)