【发布时间】:2010-07-05 02:33:03
【问题描述】:
我刚开始在 Xcode 中编程,我正在尝试编写一个 iphone 应用程序。我从一个简单的 Iphone 开发模板开始,并从那里拿走了它。现在我想构建一个命令行工具(用于转换数据),它重用我 iphone 项目中的一些类。我设法添加了一个新目标“转换”,将适当的源代码链接到目标,使目标依赖于主目标。到目前为止一切都很好,但它不会生成正确的可执行文件,它只会构建无法从命令行运行的 build/Debug-iphonesimulator/convert(我猜是因为它没有与正确的库链接)。
~/Documents/XCode/SQLiteTutorial> ./build/Debug-iphonesimulator/convert
dyld: Symbol not found: _OBJC_CLASS_$_NSCharacterSet
Referenced from: /Users/marc/Documents/XCode/SQLiteTutorial/./build/Debug-iphonesimulator/convert
Expected in: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
in /Users/marc/Documents/XCode/SQLiteTutorial/./build/Debug-iphonesimulator/convert
Trace/BPT trap
这完全可以通过 xcode 实现吗?我不确定你需要什么样的额外信息来回答这个问题,所以如果有的话,请告诉我要提供什么。
亲切的问候, 马克·范·肯彭。
【问题讨论】: