2015-11-03 36 views
0

我在我的项目中使用了ArcGIS窗格,并且一切正常。但现在我想实现我的应用程序的单元测试,我得到了错误,同时运行产品 - >测试:尝试使用ArcGIS测试Swift iOS应用程序

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的框架是一个预编译图书馆。

我Podfile:

# 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 

为什么我无法测试我的应用程序?

+0

你最终解决了这个问题吗? – g0ld2k

+0

我在cocoapods上发现我可以运行'pod尝试ArcGIS-Runtime-SDK-iOS',但它对我无效。 –

+0

我想通了我的问题,我没有在测试目标中的ArcGIS :( – g0ld2k

回答

5

解决方案:

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

测试构建设置。