This repo addresses an issue with cocoapods which I'm not able to solve. Help wanted 😎
The goal is to split UI code and business logic. The business logic should be capusled in a seperate framework. A Cocooa Touch Framework.
- Create a new Xcode Project -> Choose Single View Application.
- Add a new Target -> Choose Cocoa Touch Framework.
- Run
pod init
. - Add some pods in the
Podfile
for each target. - Run
pod install
. - Implement some code in the UI and Framework (See ViewController.swift and Utils.swift)
This runs on the simulator properly.
This project can not be run on a device. The error which shows up is the following:
dyld: Library not loaded: @rpath/SwiftAddressBook.framework/SwiftAddressBook
Referenced from: /private/var/mobile/Containers/Bundle/Application/48E58889-78D4-4D71-B8DA-154ADEB98894/Pod Error Framework.app/Frameworks/PodErrorKit.framework/PodErrorKit
Reason: image not found
To be found...