1

我正在尝试在我的应用程序(CoreBitcoin)中使用一个框架。按照自述文件中的构建说明将框架目录复制到我的项目中。我还在 Build Phases -> Link Binary With Libraries 中链接了它。

现在代码编译并工作

#import <CoreBitcoin/CoreBitcoin.h>

// I can instantiate class objects and use functions such as 
BTCKey *newKey = [[BTCKey alloc] init];
[newKey setPublicKey: nil];

但是,如果我尝试使用任何全局函数,例如

BTCDataFromBase58(@"anystring");

链接器抛出错误:

Undefined symbols for architecture i386:
"BTCDataFromBase58(NSString*)"

我环顾四周并尝试了许多解决方案来修复此错误:框架在我的搜索路径中,我禁用了位码并摆弄了一堆项目构建设置,但是,奇怪的是未定义的符号特定于全局函数。

我正在使用 Xcode 7.2,并收到警告:

(CoreBitcoin library path) was built for newer iOS version (9.2) than being linked (7.1)
4

0 回答 0