Use the User Header Search Paths for paths you want searched for #include “…”. use the Header Search Paths for #include <…>.
本行开头:ctrl + A
本行结尾:ctrl + E
全局搜索:shift + cmd + F
本文档搜索:cmd + F
全局搜索:shift + cmd + O
新建项目:cmd + shift + N
进入上层文件夹:cmd + ↑
双击}、<等就会自动匹配并选中此块代码区域
编译并运行:cmd + R
继续运行: ^ + ⌘ + Y
停止运行: ⌘ + .
step over:F6
step into:F7
step out:F8
continue program execution: ctrl(^) + cmd + Y
撤销:cmd + z
背景颜色:cmd + ,
重复上一次操作:cmd + shift + z
代码自动对齐:cmd + A,cmd + X, cmd + V
同程序切换:cmd + ~
代码块折叠: ⌥ + ⌘ + →/←
.cpp和.h文件迅速切换: ⌃ + ⌘ + ↑/↓
模拟器调出外接键盘: ⌘ + shift + K
调试时继续运行直到遇到下次断点:正常运行时,中间那个图标是这样的,停在断点之后,图标就变了,点一下就行(continue
program execution)。
xcode更新后插件会失效,这个时候需要给插件的 Info.plist文件 添加新的UUID 步骤:
1. 前往到插件安装目录:~/Library/Application Support/Developer/Shared/Xcode/Plug-ins;
2. 右键插件==》显示包内容==》双击Contents==》打开Info.plist文件;
3. 找到 DVTPlugInCompatibilityUUIDs,点击+按钮,将下面备注的UUID一条一条添加进去;
4. 保存文件并重启xcode,插件可用。
5. 给每个插件都重复上述步骤。
UUID备注: A2E4D43F-41F4-4FB9-BB94-7177011C9AED
project->clean,这样便会重新载入资源文件,否则资源文件每次都在缓存中,操作资源文件缓存加载的资源还是缓存中的。(option + clean:clean builder folder…)
targets->build settings->packaging->product name
留意info.plist File目录是否正确
window->organizer
window->organizer->Applications->想查看的application->Download,即可导出想查看的程序包的内容.
profile->Core Animation仅仅在ios设备中起作用,模拟器中无效.
修改lua文件只有在Xcode中修改才不需要clean,在外部编辑器中修改lua文件,则Xcode会默认为未修改,所以不会将修改后的lua文件拷贝到iPhone Simulator/7.1/Applications/
中去。
重启iphone,并且等待两分钟
,再开机.
File->project settings->snapshots->取消勾选即可
$(ARCHS_STANDARD) = armv7 armv7s arm64
$(ARCHS_STANDARD_32_BIT) = armv7 armv7s
将编译选项Compile Sources As改为Objective C++
IPA processing failed
More删除x86_64
和i386
架构
cd FBSDKCoreKit.framework
lipo -info FBSDKCoreKit
lipo -remove x86_64 FBSDKCoreKit -o FBSDKCoreKit
lipo -remove i386 FBSDKCoreKit -o FBSDKCoreKit
苹果的问题,我们项目刚上线的前两天也拉不起支付,一周后就突然可以拉起支付了
打开Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/IPhoneSimulator.sdk/System/Library/Frameworks/GameController.framework/Headers/GCDevice.h
文件:
@property (nonatomic, strong) dispatch_queue_t handlerQueue API_AVAILABLE(macos(10.9), ios(7.0), tvos(7.0));
改成
@property (nonatomic, assign) dispatch_queue_t handlerQueue API_AVAILABLE(macos(10.9), ios(7.0), tvos(7.0));
apple会对launchScreen.storyboard 启动的app,部分机型会缓存一份启动图截放在沙盒目录 /Library/SplashBoard 中,每次启动会优先读取缓存,造成启动图无法及时更新。所以决定在app每次启动后有缓存就清除缓存。
Edit Scheme->Run->Arguments->Arguments passed on Launch