Xcode 尝试使用ArcGIS测试Swift iOS应用程序

Xcode 尝试使用ArcGIS测试Swift iOS应用程序,xcode,swift,frameworks,cocoapods,arcgis,Xcode,Swift,Frameworks,Cocoapods,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 @testab

我在我的项目中使用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
在测试生成设置中。

解决方案:

Framework Search Path: $(SRCROOT)/Pods, recursive

在测试生成设置中。

您最终解决了这个问题吗?我在cocoapods上发现我可以运行
pod尝试ArcGIS Runtime SDK iOS
,但它对我不起作用。我解决了我的问题,测试目标中没有ArcGIS:(您最终解决了这个问题吗?我在cocoapods上发现我可以运行
pod尝试ArcGIS Runtime SDK iOS
,但它对我不起作用。我解决了我的问题,测试目标中没有ArcGIS:(