我用模板制作了新的Xcode项目。 我有一个pod文件,只要求空间/核心' pod(取决于sqlite3 pod。 我运行了'pod install --verbose',我得到了这个:
Analyzing dependencies
Updating spec repositories
Updating spec repo `master`
$ /usr/bin/git pull --ff-only
Already up-to-date.
Inspecting targets to integrate
Using `ARCHS` setting to build architectures of target `Pods`: (``)
Finding Podfile changes
- spatialite/core
Resolving dependencies of `Podfile`
Starting resolution (2015-04-04 23:47:58 -0700)
Creating possibility state for spatialite/core (= 4.1.1) (1 remaining)
Attempting to activate spatialite/core (4.1.1)
Activated spatialite/core at spatialite/core (4.1.1)
Requiring nested dependencies (sqlite3)
Creating possibility state for sqlite3 (1 remaining)
Attempting to activate sqlite3 (3.8.8.3)
Activated sqlite3 at sqlite3 (3.8.8.3)
Requiring nested dependencies (sqlite3/common (= 3.8.8.3))
Creating possibility state for sqlite3/common (= 3.8.8.3) (1 remaining)
Attempting to activate sqlite3/common (3.8.8.3)
Activated sqlite3/common at sqlite3/common (3.8.8.3)
Requiring nested dependencies ()
Finished resolution (3 steps) (Took 0.007224 seconds) (2015-04-04 23:47:58 -0700)
Unactivated:
Activated: spatialite/core, sqlite3, sqlite3/common
Comparing resolved specification to the sandbox manifest
- spatialite
- sqlite3
Downloading dependencies
-> Using spatialite (4.1.1)
-> Using sqlite3 (3.8.8.3)
- Running pre install hooks
Generating Pods project
- Creating Pods project
- Adding source files to Pods project
- Adding frameworks to Pods project
- Adding libraries to Pods project
- Adding resources to Pods project
- Linking headers
- Installing targets
- Installing target `Pods-sqlite3` iOS 8.0
- Installing target `Pods` iOS 8.0
- Running post install hooks
- Writing Xcode project file to `Pods/Pods.xcodeproj`
- Writing Lockfile in `Podfile.lock`
- Writing Manifest in `Pods/Manifest.lock`
Integrating client project
Integrating target `Pods` (`TestProject.xcodeproj` project)
所有处理都没有错误,但问题是它只安装Pod-sqlite3和Pod,但不安装Pod-spatialite。
我一直在查看podspec.json文件,但我看不出有什么问题,而且我无法找到进一步调试的方法。如果有人能够指出我对“播客”的命令行选项会非常有帮助。命令,提供有关它在后台执行的内容的核心详细信息,以及出错的地方。
谢谢!
答案 0 :(得分:0)
我找到了它没有添加的原因:代码被正确下载,但podspec.json配置不正确导致下载的代码无法找到。
解决方案是更改podspec.json文件,如下所示:
"source": {
- "http": "http://www.gaia-gis.it/gaia-sins/libspatialite-sources/libspatialite-4.1.1.tar.gz"
+ "http": "http://www.gaia-gis.it/gaia-sins/libspatialite-sources/libspatialite-4.1.1.tar.gz",
+ "flatten": true
},
在此之后,事情开始发挥作用。它仍然无法在以后编译,但这是由于另一个已知问题(见https://github.com/andreacremaschi/SpatialDBKit和https://github.com/andreacremaschi/SpatialDBKit/issues/12)