Xcode Frameworks folder class reference not working?

I am trying to add ads into my Swift 3 SpriteKit game. Specifically, AdColony and Vungle. The problem is that when I import the frameworks that they supply me, nothing works. For Example:


https://i.stack.imgur.com/vtjot.png


Now when I add a bridge Objective-C file and

#import <VungleSDK/VungleSDK.h>

like I was told, I get an error reading:

VSwift-Bridging-Header.m:9:9: 'VungleSDK/VungleSDK.h' file not found

I have tried moving the folder `VungleSDK/VungleSDK.h` but that still did nothing.


Now with AdColony I have imported that but the bridge file is fine. When I try and reference a class in my `.swift` files from the AdColony frameworks folder it reads:

GameOverScene.swift:47:9: Use of unresolved identifier 'AdColony'

I have read/did the AdColony/Vungle tutorials (Vungle: https://v.vungle.com/dashboard/applications/5942ea1625cbbb8e4f002a70/details AdColony: https://github.com/AdColony/AdColony-iOS-SDK-3/wiki/Xcode-Project-Setup#adding-the-framework-to-your-xcode-project) but I can't seem to figure out what is the problem and why I am unable to reference anything. I have also downloaded and ran the test projects by both ad services, and they worked just fine.

Replies

I would ask AdColony to provide you with Swift 3 code to show their ads. Swift is now on version 3, almost 4 and they are still only providing developers with Objective C code? That's your real problem. Might be worth questioning their ad network if no one over there can take the time to actually support the iOS code most developers are using now.

Thank you and I will contact them. It was a big surprise to me as well when I didn't see very much swift 3 documentation. You would think a company as big as that would keep up to date.

Yeah, I certainly wouldn't recommend them to any of my students.