0
所以我想在iOS应用程序中启动并运行ObjCMongoDb,但我一直收到这个错误。如何将ObjCMongoDb集成到iOS应用程序中?
ignoring file /Users/user/Documents/Programming/ObjCMongoDB/ObjCMongoDB.framework/ObjCMongoDB, file was built for unsupported file format (0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0) which is not the architecture being linked (armv7): /Users/user/Documents/Programming/ObjCMongoDB/ObjCMongoDB.framework/ObjCMongoDB
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_BSONDecoder", referenced from:
objc-class-ref in MongoDbConnection.o
"_OBJC_CLASS_$_MongoKeyedPredicate", referenced from:
objc-class-ref in MongoDbConnection.o
"_OBJC_CLASS_$_MongoUpdateRequest", referenced from:
objc-class-ref in MongoDbConnection.o
"_OBJC_CLASS_$_MongoConnection", referenced from:
objc-class-ref in MongoDbConnection.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我有一种感觉,这意味着框架不会被编译为iOS,但在Mac OS X
有谁知道如何ObjCMongoDb集成到iOS应用程序?
谢谢!
我对这个文档有点困惑。它告诉我添加六个文件bson.c,encoding.c等。它在哪里要我添加这些文件?他们已经添加到项目中,因为当我现在运行时,我得到100个错误。 – adeiji
尝试删除框架并重新开始。 – paulmelnikow
尝试过了,仍然是同样的问题... – adeiji