Hello list,
I promise, I'm not trying to use UIKit on OS X this time. :)
I have a Mac project in which I want to use the SwifterMac framework:
https://github.com/mattdonnelly/Swifter

The Readme states that I just add the Swifter.xcodeproj file to my project, add 
SwifteriOS or SwifterMac to the frameworks section of my project's build 
phases, and that's it. I've done both, but no matter what I try, as soon as I 
create a new instance of Swifter, I see "use of unresolved identifier Swifter" 
appear and the project fails to build. The really weird part is that, if I go 
to the line causing the error and press cmd-ctrl-j, the relevant class in 
Swifter opens right up; clearly, Xcode can see the framework, or it couldn't 
jump to the source like that. I'm on OS X 10.11, Xcode 7 beta 6. Here's what 
I've already tried:

* clean, using cmd-shift-k
* folder clean, using cmd-shift-option-k
* removing the Derived Data folder from the project
* adding "import Swifter" or "import SwifterMac" to the top of the file in 
which I create the Swifter instance (both error out, saying there is no such 
thing as Swifter or SwifterMac)
* removing and re-adding the framework
* adding the whole folder of source code, not just the .xcodeproj file, to my 
project
* adding the SwifterMac framework to my tests and UI tests, even though neither 
of them use it (I've not done anything with tests yet, so both are untouched)
* Adding Swifter to the copy phase of my project, because at that point I was 
out of ideas.
* creating a whole new project, adding the framework to the build phases, and 
creating a Swifter object in AppDelegate.swift (same error). Aside from that, 
I've made no other changes to this fresh project, yet it gives me the exact 
same error the first project did.

Nothing has made any difference. Of course, this is still a beta of Xcode, but 
usually things are pretty good by beta 6 and I can't imagine there would be 
problems using frameworks. I'm on Xcode 7 because it's much friendlier to 
VoiceOver, especially in IB, and my Mac is a small one that lacks room to hold 
both the stable *and* beta versions of an app as massive as Xcode.

Is there anything I haven't tried, or a sneaky cause for this problem that 
might be hiding somewhere? This is my first adventure into using frameworks, 
but it doesn't seem hard, and I can't imagine I've messed anything up, 
especially on the fresh project. Thanks for any suggestions you may have.

--
Have a great day,
Alex Hall
[email protected]


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to