将 WebTrends 安装到 Unity 制作的 iOS 游戏中
Installing WebTrends to an iOS game made in Unity
正如罐头上所说,我在 Unity 中制作了一款游戏,并为 iOS 设备构建了它。客户问我们是否可以将 WebTrends 应用到游戏中,所以我按照 this link 了解如何安装它的说明。
这是我的 pod 文件的样子:
source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/Webtrends/ios-sdk.git'
pod 'Webtrends-SDK/Core', '~>3.0'
target 'Unity-iPhone' do
pod 'Webtrends-SDK/Core', '~> 3.0'
end
在 运行 pod install
之后,这是我的结果:
[!] CocoaPods could not find compatible versions for pod "Webtrends-SDK/Core":
In Podfile:
Webtrends-SDK/Core (~> 3.0)
Specs satisfying the `Webtrends-SDK/Core (~> 3.0)` dependency were found, but they required a higher minimum deployment target.
我尝试googleWebTrends SDK Core 3.0 的最低部署目标是什么,但一无所获。
回到Unity查看,最低部署目标设置为6.0。我将它提升到 8.0,重建并重新安装了 cocoapods,但我遇到了相同的结果。
还有什么我可以尝试的吗?
我在 Unity 中将我的最低构建目标设置为 8.0,然后将以下行添加到我的 pod 文件中:
platform :ios, '8.0'
pod 安装的结果是:
Analyzing dependencies
Downloading dependencies
Installing Webtrends-SDK (3.2.7)
Generating Pods project
Integrating client project
[!] Please close any current Xcode sessions and use `Unity-iPhone.xcworkspace` for this project from now on.
Sending stats
正如罐头上所说,我在 Unity 中制作了一款游戏,并为 iOS 设备构建了它。客户问我们是否可以将 WebTrends 应用到游戏中,所以我按照 this link 了解如何安装它的说明。
这是我的 pod 文件的样子:
source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/Webtrends/ios-sdk.git'
pod 'Webtrends-SDK/Core', '~>3.0'
target 'Unity-iPhone' do
pod 'Webtrends-SDK/Core', '~> 3.0'
end
在 运行 pod install
之后,这是我的结果:
[!] CocoaPods could not find compatible versions for pod "Webtrends-SDK/Core":
In Podfile:
Webtrends-SDK/Core (~> 3.0)
Specs satisfying the `Webtrends-SDK/Core (~> 3.0)` dependency were found, but they required a higher minimum deployment target.
我尝试googleWebTrends SDK Core 3.0 的最低部署目标是什么,但一无所获。
回到Unity查看,最低部署目标设置为6.0。我将它提升到 8.0,重建并重新安装了 cocoapods,但我遇到了相同的结果。
还有什么我可以尝试的吗?
我在 Unity 中将我的最低构建目标设置为 8.0,然后将以下行添加到我的 pod 文件中:
platform :ios, '8.0'
pod 安装的结果是:
Analyzing dependencies
Downloading dependencies
Installing Webtrends-SDK (3.2.7)
Generating Pods project
Integrating client project
[!] Please close any current Xcode sessions and use `Unity-iPhone.xcworkspace` for this project from now on.
Sending stats