尝试使用 ArcGIS 测试 Swift iOS 应用程序
Trying to test Swift iOS app with ArcGIS
我在我的项目中使用 ArcGIS pod,一切正常。但是现在我正在尝试在我的应用程序中实施单元测试,但在 运行 Product -> Test:
时出现错误
ld: framework not found ArcGIS for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我的测试文件如下所示:
import UIKit
import XCTest
@testable import MyApp
ArcGIS 框架是一个预编译库。
我的播客文件:
# Uncomment this line to define a global platform for your project
# platform :ios, '8.0'
use_frameworks!
target 'MyApp' do
pod 'ArcGIS-Runtime-SDK-iOS', '~> 10.2.5'
end
target 'MyAppTests' do
pod 'ArcGIS-Runtime-SDK-iOS', '~> 10.2.5'
end
为什么我无法测试我的应用程序?
解决方案:
Framework Search Path: $(SRCROOT)/Pods, recursive
在测试构建设置中。
我在我的项目中使用 ArcGIS pod,一切正常。但是现在我正在尝试在我的应用程序中实施单元测试,但在 运行 Product -> Test:
时出现错误ld: framework not found ArcGIS for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我的测试文件如下所示:
import UIKit
import XCTest
@testable import MyApp
ArcGIS 框架是一个预编译库。
我的播客文件:
# Uncomment this line to define a global platform for your project
# platform :ios, '8.0'
use_frameworks!
target 'MyApp' do
pod 'ArcGIS-Runtime-SDK-iOS', '~> 10.2.5'
end
target 'MyAppTests' do
pod 'ArcGIS-Runtime-SDK-iOS', '~> 10.2.5'
end
为什么我无法测试我的应用程序?
解决方案:
Framework Search Path: $(SRCROOT)/Pods, recursive
在测试构建设置中。