xcode经验汇总(持续更新中)
使用命令行编译,创建main.m文件,写个NSLog语句(需要Foundation头文件),用clang编译不过。解决办法是:clang -framework Foundation main.m -o main,或者-fmodules Foundation(代码中用@import Foundation; 而不是#import <Foundation/Foundation.h>
文本搜索选项——cmd+g正爽,到最后一个出现的位置时,若还没找到想目标代码段,是否会期望自动光标移至第一次出现的位置(所谓的wrap around)。这个选项很隐蔽,我在cmd+,的选项里找了n多次,怎么也找不到开关。在哪找到的呢,cmd+f时的选项,贴图(注意放大镜图标旁的小三角)(Wrap Around 的意思是 Start over from the top of the document when no match is found.)
单元测试(XCTest)无需Code Sign(Automatic和Don't Code Sign同义)
http://stackoverflow.com/questions/26109851/code-signing-is-required-for-product-type-unit-test-bundle-in-sdk-ios-8-0
to be continued.
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。