Search code examples
iosxcode9-beta

Use of undeclared identifier in Xcode 9.0


I am trying to integrate this framework manually in my Xcode project. As I am structuring my project, I am adding it inside a folder [not a group]. So then the problem is started, "use of undeclared identifier SkyFloatingLabelTextField. What should I do to make it work properly?

I tried the same in sample project as well and the error is same.

I am not getting any options when trying drag and drop the folder to the project structure. The same when try adding through "Add Files".


Solution

  • I added the Sources folder inside another folder at the workspace.

    enter image description here

    Added the folder using "Add Files to ..." option.

    Checked the Target Membership for all the files inside Sources folder, as it was not checked.enter image description here

    Although, it looks like source code of SkyFloatingLabelTextField, has not been updated for Swift4. You may need to do it yourself.