Fail to Import RestKit with Cocoapods Dynamic Frameworks
This is a bug currently in RestKit. Sam Giddin has an open PR right now that fixes the issue. I made a fork of RestKit that I'm using in my project with the commits from the PR to get around this issue until they merge in the fixes and make a new release.
Restkit 0.20.x cocoapods install issue - Compiles but can't find import of RestKit
Finally solved the issue.
The problem was that cocoapods does not set the target configuration on multiple targets in a project. I had my main target and a test target. Shame on me for doing unit tests. :)
Pictures explains this best and I'd like to post a link to the original answer and give credit to that user who posted it. Thanks Waggles!
Solution at this link...
https://stackoverflow.com/a/16703468/1790578
I hope this helps others in the future.
Getting error No such module using Xcode, but the framework is there
I'm not sure why this happens, but one way to solve your issue is to go into your build settings and defining the Framework Search Paths to a folder which contains the frameworks in question. If the frameworks are placed in your project directory, simply set the framework search path to $(SRCROOT)
and set it to recursive.
AFNetworking via RestKit - files missing
Update to RestKit 0.27, which has incorporated AFNetworking 1.3 with non-conflicting names for its own use. Then if you need AFNetworking for your own code, you can add it as a separate Cocoapod.
RestKit and CocoaLumberjack integrated as frameworks in Xcode7
Your suspicion is correct.
RestKit somehow sees the CocoaLumberjack headers (where the DDLog.h is), but is not properly linked against it when the project is built
This is a problem with RestKit and everything that you would do within your own project would be a workaround. So arguably, there is no single correct way to fix this in your project.
I have filed a Pull Request with a fix for this issue.
Update:
The pull request has been merged, but at the time of writing this update, no new version of RestKit has been released yet.
pod "RestKit", :head, :subspecs => ['Core', 'CocoaLumberjack']
RestKit's Lumberjack logging functionality has been moved into a separate subspec that you have to specify if you want to use it.:head
will tell CocoaPods to use the current master instead of a released version.
Cannot import frameworks on new swift files when using cocoapods
Check the target membership of this new file to see if has the same as 2 previous one.
Select the file -> File Inspector -> Target Membership
Related Topics
Swift 3 Warning: Non-Optional Expression of Type 'String' Used in a Check for Optionals
iOS Firebase: Firauthuidelegate.Authui Not Being Called
Storing Array of Custom Objects in Userdefaults
Hittest Prints Ar Entity Name Even When I am Not Tapping on It
Creating a Subclass of Skshapenode
Instance Member 'View' Cannot Be Used on Type 'Gamescene'
Enum's Rawvalue Property Not Recognized
Swift Throws Python Errors from Terminal
Access Flutter Sharedpreferences in Swift
Convert [(Key: String, Value: String)] in [String:String]
Swift: Uploading Image to Firebase Cloud Storage When User Closes App
How to Set a Function as Function Argument in Swift 3
Failed to Obtain a Cell from Its Datasource with Swift 3
How to Compare Result to .Succeed in Swift
How to Use View Controller (Calendarkit) in Swiftui Application
Alternative to Switch Statement in Swiftui Viewbuilder Block