Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

prasmat

macrumors newbie
Original poster
May 22, 2016
1
0
Hello,

I'm pretty new to this forum, hoping to get help from somebody with this issue described below.

I am creating a dynamic framework which contains all the frameworks listed below.

Cartfile
github "Alamofire/Alamofire" ~> 3.3
github "Hearst-DD/ObjectMapper" ~> 1.2
github "DaveWoodCom/XCGLogger" ~> 3.3
github "SwiftyJSON/SwiftyJSON"
github "krzyzanowskim/CryptoSwift"
github "iosdevzone/IDZSwiftCommonCrypto"
github "ashleymills/Reachability.swift"
github "ViccAlexander/Chameleon"
github "Alamofire/AlamofireImage" ~> 2.0
github "akosma/SwiftMoment"

My dynamic framework is getting build properly but when I use my dynamic framework in my app project I am getting the following error;

Missing required modules : 'Alamofire','XCGlogger','SwiftMoment','AlamofireImage','Chameleon','Reachability','IDZSwiftCommonCrypto','CryptoSwift','SwiftyJSON','ObjectMapper'

Do I need to do anything extra to link my carthage> build > ios frameworks into my project?

Any help would be appreciated..

carthage version: 0.16.2
xcodebuild -version: Xcode 7.3.1 Build version 7D1014
Are you using --no-build? No
Are you using --no-use-binaries? No
Are you using --use-submodules? No
 
I haven't used Carthage but I did read some of the docs and tutorials. I believe you do need to add the dependent frameworks to your app project as dependencies. Carthage builds the dependent frameworks for you and then you should add them using the Link Binary With Libraries pane. I guess you already added these dependent frameworks to your framework project, but I think that's not enough.

This tutorial makes the dependent frameworks into git submodules but I'm not sure if that's needed: https://robots.thoughtbot.com/creating-your-first-ios-framework
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.