Xcode4 在Xcode 4中,如何创建多共享项目设置?
我现在正在开发几个iOS应用程序,它们共享一些常见的第三方LIB,以及一些我自己的共享代码 这是我的文件夹布局: -320/ “我的所有应用”的通用设置:Xcode4 在Xcode 4中,如何创建多共享项目设置?,xcode4,static-linking,Xcode4,Static Linking,我现在正在开发几个iOS应用程序,它们共享一些常见的第三方LIB,以及一些我自己的共享代码 这是我的文件夹布局: -320/ “我的所有应用”的通用设置: -Shared/*chibiORM* (ORM layer) -Shared/**BaseApp** (This link to chibiORM & three20) ---------------/Libs/(Several small 3dparty libs) 此应用程序必须链接到BaseApp,并具有three20、chi
-Shared/*chibiORM* (ORM layer)
-Shared/**BaseApp** (This link to chibiORM & three20)
---------------/Libs/(Several small 3dparty libs)
此应用程序必须链接到BaseApp,并具有three20、chibiORM和3dparty-party LIB访问权限
- App1
- App2
- AppN...
我知道如何将静态库链接到单个项目,但无法进行此多链接设置,其中BaseApp链接到three20、chibiORM、其他实用程序,而App1..N链接到所有以前的项目
我不喜欢一个接一个地链接到当前设置,而是一次链接到所有设置
我可以编译fine BaseApp,只需将项目/拖放添加到App1。然后,我将标题/框架/库路径放在指向所有路径的位置。我想知道这是否可以简化为一条路径,而不是放在这里的5条路径,但从BaseApp链接的每个库都会出现以下错误:
Undefined symbols for architecture i386:
"__ALog", referenced from:
-[App1AppDelegate closeDb] in App1AppDelegate.o
-[App1AppDelegate application:didFinishLaunchingWithOptions:] in App1AppDelegate.o
-[BoardViewController cardSelected:indexPath:] in BoardViewController.o
-[BoardViewController gestureRecognizerShouldBegin:] in BoardViewController.o
-[BoardViewController moveActionGestureRecognizerStateChanged:] in BoardViewController.o
-[BoardViewController finishedSnap:finished:context:] in BoardViewController.o
-[BoardViewController animationDidStop:finished:context:] in BoardViewController.o
...
"_sqlite3_unicode_free", referenced from:
-[App1AppDelegate closeDb] in App1AppDelegate.o
"_sqlite3_unicode_load", referenced from:
-[App1AppDelegate application:didFinishLaunchingWithOptions:] in App1AppDelegate.o
"_OBJC_CLASS_$_Db", referenced from:
objc-class-ref in App1AppDelegate.o
这有可能吗?我终于把来自&.的想法结合起来了 这些错误是因为我忘了将lib链接到项目,并且与问题无关 主要技巧是在静态lib目标中添加$build\u PRODUCTS\u DIR