Swift的Debug和Release宏
发布时间:2020-12-14 07:18:03 所属栏目:百科 来源:网络整理
导读:step a: 在Swift Compiler - Custom Flags的Other Swift Flags的Debug里添加-DDEBUG 在Release里添加-DRELEASE step b: 在代码里这么使用 #if DEBUG print( "debug" ) #endif #if RELEASE print ( "release" ) #endif
step a: 在Swift Compiler - Custom Flags的Other Swift Flags的Debug里添加-DDEBUG 在Release里添加-DRELEASE step b: 在代码里这么使用 #if DEBUG print("debug") #endif
#if RELEASE print("release") #endif (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- JForum数据持久化
- React Native/Xcode Upgrade现在没有找到RCTConvert.h
- c# – 如何使用密码连接到sqlite数据库
- Ajax-实现Google Suggest风格搜索
- 2019 Multi-University Training Contest 2
- react0.45.0版本问题 An error was encountered processing
- c# – Mono for Android,WebView输入字段filechooser不起作
- c# – 如果您的MVC依赖解析器已设置为使用ninject,是否有任
- objective-c – 带有一些C代码的Objective C将无法编译
- xml可视化编辑器