Xcode嵌入第二个项目,链接错误

时间:2013-11-17 23:36:28

标签: ios xcode linker

我有一个项目使用(或想要)路线我(阿尔卑斯山叉)。我跟随安装互动取得了一些有限的成功。

我已将“MapView.xcodeproj”拖入我的项目中,我已将mapview.lib添加到“目标依赖项”和“将二进制文件与库链接”。

如果我去MapViewController,我可以编写所有代码,导入RMmapView.h时没有错误。所以编译器看到导入的库,但是当我构建应用程序时,我得到了这个错误

d /Users/macuser/Library/Developer/Xcode/DerivedData/G4EMA-djubtvaxtspjxbbolnkeaoatnyqd/Build/Products/Debug-iphonesimulator/G4EMA.app/G4EMA normal i386
cd /Users/macuser/Dropbox/G4EMA
setenv IPHONEOS_DEPLOYMENT_TARGET 5.1
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -L/Users/macuser/Library/Developer/Xcode/DerivedData/G4EMA-djubtvaxtspjxbbolnkeaoatnyqd/Build/Products/Debug-iphonesimulator -LRM -LRM/Alpstein-route-me-f06f2d0 -LRM/MapView -LRM/Proj4 -LRM/samples -LRM/Alpstein-route-me-f06f2d0/MapView -LRM/Alpstein-route-me-f06f2d0/Proj4 -LRM/Alpstein-route-me-f06f2d0/samples -LRM/MapView/Map -LRM/MapView/UnitTesting -LRM/samples/LayeredMap -LRM/samples/MapMemoryLeaksCheck -LRM/samples/MapTestbed -LRM/samples/MapTestbedFlipMaps -LRM/samples/MapTestbedTwoMaps -LRM/samples/MarkerMurder -LRM/samples/ProgrammaticMap -LRM/Alpstein-route-me-f06f2d0/MapView/Map -LRM/Alpstein-route-me-f06f2d0/MapView/UnitTesting -LRM/Alpstein-route-me-f06f2d0/samples/LayeredMap -LRM/Alpstein-route-me-f06f2d0/samples/MapMemoryLeaksCheck -LRM/Alpstein-route-me-f06f2d0/samples/MapTestbed -LRM/Alpstein-route-me-f06f2d0/samples/MapTestbedFlipMaps -LRM/Alpstein-route-me-f06f2d0/samples/MapTestbedTwoMaps -LRM/Alpstein-route-me-f06f2d0/samples/MarkerMurder -LRM/Alpstein-route-me-f06f2d0/samples/ProgrammaticMap -LRM/MapView/Map/FMDB -LRM/MapView/Map/Resources -LRM/MapView/Map/SMCalloutView -LRM/samples/LayeredMap/Classes -LRM/samples/MapMemoryLeaksCheck/Classes -LRM/samples/MapTestbed/Classes -LRM/samples/MapTestbedFlipMaps/Classes -LRM/samples/MapTestbedTwoMaps/Classes -LRM/samples/MarkerMurder/Classes -LRM/samples/ProgrammaticMap/Classes -LRM/Alpstein-route-me-f06f2d0/MapView/Map/FMDB -LRM/Alpstein-route-me-f06f2d0/MapView/Map/Resources -LRM/Alpstein-route-me-f06f2d0/MapView/Map/SMCalloutView -LRM/Alpstein-route-me-f06f2d0/samples/LayeredMap/Classes -LRM/Alpstein-route-me-f06f2d0/samples/MapMemoryLeaksCheck/Classes -LRM/Alpstein-route-me-f06f2d0/samples/MapTestbed/Classes -LRM/Alpstein-route-me-f06f2d0/samples/MapTestbedFlipMaps/Classes -LRM/Alpstein-route-me-f06f2d0/samples/MapTestbedTwoMaps/Classes -LRM/Alpstein-route-me-f06f2d0/samples/MarkerMurder/Classes -LRM/Alpstein-route-me-f06f2d0/samples/ProgrammaticMap/Classes -F/Users/macuser/Library/Developer/Xcode/DerivedData/G4EMA-djubtvaxtspjxbbolnkeaoatnyqd/Build/Products/Debug-iphonesimulator -filelist /Users/macuser/Library/Developer/Xcode/DerivedData/G4EMA-djubtvaxtspjxbbolnkeaoatnyqd/Build/Intermediates/G4EMA.build/Debug-iphonesimulator/G4EMA.build/Objects-normal/i386/G4EMA.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -objc,-all_load -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=5.1 /Users/macuser/Library/Developer/Xcode/DerivedData/G4EMA-djubtvaxtspjxbbolnkeaoatnyqd/Build/Products/Debug-iphonesimulator/libMapView.a -lz -framework SystemConfiguration -lsqlite3 -framework QuartzCore -framework CoreLocation -framework UIKit -framework Foundation -framework CoreGraphics -Xlinker -dependency_info -Xlinker /Users/macuser/Library/Developer/Xcode/DerivedData/G4EMA-djubtvaxtspjxbbolnkeaoatnyqd/Build/Intermediates/G4EMA.build/Debug-iphonesimulator/G4EMA.build/Objects-normal/i386/G4EMA_dependency_info.dat -o /Users/macuser/Library/Developer/Xcode/DerivedData/G4EMA-djubtvaxtspjxbbolnkeaoatnyqd/Build/Products/Debug-iphonesimulator/G4EMA.app/G4EMA

Undefined symbols for architecture i386:
"_OBJC_CLASS_$_RMTileImage", referenced from:
  objc-class-ref in libMapView.a(RMMapTiledLayerView.o)
"_RMTileDummy", referenced from:
  -[RMFractalTileProjection normaliseTile:] in   libMapView.a(RMFractalTileProjection.o)
"_RMTileKey", referenced from:
  +[RMTileCache tileHash:] in libMapView.a(RMTileCache.o)
  -[RMAbstractWebMapSource imageForTile:inCache:] in libMapView.a(RMAbstractWebMapSource.o)
  ___47-[RMAbstractWebMapSource imageForTile:inCache:]_block_invoke in libMapView.a(RMAbstractWebMapSource.o)
  ___47-[RMAbstractWebMapSource imageForTile:inCache:]_block_invoke108 in libMapView.a(RMAbstractWebMapSource.o)
  ___42-[RMCompositeSource imageForTile:inCache:]_block_invoke in libMapView.a(RMCompositeSource.o)
  ___42-[RMCompositeSource imageForTile:inCache:]_block_invoke_2 in libMapView.a(RMCompositeSource.o)
"_RMTileMake", referenced from:
  -[RMMapTiledLayerView drawLayer:inContext:] in libMapView.a(RMMapTiledLayerView.o)
  -[RMTileCache beginBackgroundCacheForTileSource:southWest:northEast:minZoom:maxZoom:] in libMapView.a(RMTileCache.o)
  ___85-[RMTileCache beginBackgroundCacheForTileSource:southWest:northEast:minZoom:maxZoom:]_block_invoke_2 in libMapView.a(RMTileCache.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我真的不知道为什么会这样,我对s / o的研究已经空白,所以任何信息或指示都会受到赞赏。

0 个答案:

没有答案