3

I can't get the SKMaps module to resolve when installing it as a Cocoapods dependency.

When importing:

import SKMaps

I get the following error: No such module 'SKMaps'. My Podfile is as follows:

platform :ios, '8.0'

target 'TestSpace' do
use_frameworks!

pod 'ScoutMaps-iOS-SDK'

end

I have run pod install, and it succeeded. As far as I understand a bridging header should not be necessary when installing a Cocoapods-dependency when declaring use_frameworks!.

More details:

I have opened the .xcworkspace generated by pod install. I don't understand all the details of the Cocoapods framework, but at the end of Pods-TestSpace-frameworks.sh there is a section at the end that only appears if I add other dependencies.

if [[ "$CONFIGURATION" == "Debug" ]]; then 
  install_framework "Pods-TestSpace/OtherDependency.framework"
fi
if [[ "$CONFIGURATION" == "Release" ]]; then
  install_framework "Pods-TestSpace/OtherDependency.framework"
fi

I don't know if that is just a matter of the dependency using a different configuration type, or if it's an indication of something being wrong.

Also, the version of the ScoutMaps-iOS-SDK being downloaded/installed is 2.5.1.

benwixen
  • 972
  • 9
  • 15
  • 1
    Checking with Scout developers – SylviA Jan 14 '16 at 14:45
  • Did you get any response on this? Is there something like an archetype project with an example of how to set it up correctly? – benwixen Feb 05 '16 at 03:56
  • 1
    Unfortunately, no answer yet, but it's on the list. The dev team is fully booked with the new release and the enterprise requests. – SylviA Feb 05 '16 at 11:59
  • As the current SKMaps does not support modules- that's the reason why it's not working. SKMaps 3.0 will work with this- should be released soon – SylviA May 18 '16 at 07:21

1 Answers1

0

After running pod install, you'll need to close the Xcode project and then open the newly generated .xcworkspace file.

corykon
  • 126
  • 1
  • 9