刚刚入门,有不正确之处还望指正!
本来以为iPhone可以直接调用MAC OS X 上的BSD C library(.dylib),结果用otool工具查看到新建立的libHelloC.dylib,得到如下结果:
$ otool -L libHelloC.dylib
libHelloC.dylib:
/usr/local/lib/libHelloC.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0)
而对于建立的iPhone工程 View based Application程序:
$ otool -L HelloWorld
HelloWorld:
/System/Library/Frameworks/Foundation.framework/Foundation (compatibility version 300.0.0, current version 751.49.0)
/System/Library/Frameworks/UIKit.framework/UIKit (compatibility version 1.0.0, current version 1400.0.0)
/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics (compatibility version 64.0.0, current version 600.0.0)
/usr/local/lib/libHelloC.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.dylib (compatibility version 1.0.0, current version 125.0.0)
/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation (compatibility version 150.0.0, current version 550.52.0)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 227.0.0)
看到一个是/usr/lib/libSystem.dylib,另一个是/usr/lib/libSystem.B.dylib,于是在网上搜索到:
看到如下解释:
Clint Harris提问:I’m running Xcode 3.2.3 with