我在项目中添加了一个框架目标.但是当我尝试导入框架时,编译器将返回错误Use of '@import' when modules are disabled.我已经在其架构构建设置中包含了arm64架构.我可以在Build Phases中看到框架.我可以在新项目中导入框架而不是当前项目.我错过了任何其他配置吗?
我刚刚更新到xCode 6.1并且不得不重新安装我的iOS 7模拟器.
除了5s iOS 7.1 sim之外,我可以在所有模拟器上运行我的应用程序.我得到了这个崩溃
dyld: Symbol not found: _objc_isAuto
Referenced from: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/usr/lib/libobjc.A.dylib
in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
(lldb)
Run Code Online (Sandbox Code Playgroud)
是什么赋予了?任何想法为什么这个SIM卡崩溃?
谢谢
我想有条件地链接一个库(我有用于iOS设备的该库,但没有用于Simulator的库)。我正在使用Xcode 4.6和iOS 6.1。
我读了一个问题(和几个类似的问题):iOS条件链接静态库
-weak_library链接器标志
我尝试使用以下标志来构建ry项目:
-weak_library LibraryNameWithPath
Run Code Online (Sandbox Code Playgroud)
但是它给我一个错误:
ld: file not found: LibraryNameWithPath
Run Code Online (Sandbox Code Playgroud)
-weak -l链接器标志
我尝试使用以下标志构建它:
-weak-lShortLibraryName
Run Code Online (Sandbox Code Playgroud)
并得到相同的结果:
ld: library not found for -lShortLibraryName
Run Code Online (Sandbox Code Playgroud)
思想
如果它被显式标记为弱链接,为什么还要检查库是否存在?
有没有一种方法可以在构建时进行条件链接(与dlopen,dlclose和friends的运行时使用情况相比)?