Petr Syrov Petr Syrov - 5 months ago 25
Swift Question

Trying to test Swift iOS app with ArcGIS

I'm using ArcGIS pod in my project and everything is working fine. But now I'm trying to implement unit tests in my app and I got the error while run 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)


My test file looks like:

import UIKit
import XCTest
@testable import MyApp


ArcGIS framework is a precompiled library.

My 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


Why I can't test my app?

Answer

Solution:

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

in test build settings.