MDWamp icon indicating copy to clipboard operation
MDWamp copied to clipboard

Usage for iOS ( i.e. with Carthage)

Open matthiasp42 opened this issue 9 years ago • 4 comments

I am forced to use Carthage instead of CocoaPods. While it was rather easy to integrate using CocoaPods, I just can't figure out how to build a usable framework with Carthage, or (for that matter) just using the project of this github repository.

If I clone this repository, what build artifact/product of this project am I using to integrate in another iOS app? If I use the target 'MDWamp' it complains that it's not build for the right architecture (which makes sense I guess since that is actually an OSX target. If I try to add 'libMDWamp', I just get a 'no such module' error while building.

I'm still fairly new to this whole build management topic on iOS, so maybe I'm just making a rookie mistake. If so: Could somebody give me some clue or hint on what topics exactly I should read up on. Otherwise: Would it be possible to add a target to this project that is easily integrateable into other iOS projects?

matthiasp42 avatar May 24 '16 15:05 matthiasp42

hi @fancy42, yes it has problem I've to update the library to rightfully support carthage on iOS, I'll sort it out and come back to you

mogui avatar May 27 '16 18:05 mogui

hi @fancy42

can you try to add this: github "mogui/MDWamp" "develop"

to your Cartfile and tell me if everything is OK now?

mogui avatar Jun 05 '16 22:06 mogui

Thank you for getting back to this.

I get this error:

/Users/<username>/<path to workspace>/Carthage/Checkouts/MPMessagePack/MPMessagePack/NSData+MPMessagePack.m:11:9: fatal error: 'GHODictionary/GHODictionary.h' file not found

A shell task (/usr/bin/xcrun xcodebuild -project /Users/<username>/<path to workspace>/Carthage/Checkouts/MPMessagePack/MPMessagePack.xcodeproj -scheme MPMessagePack iOS -configuration Release -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean build) failed with exit code 65:
2016-06-10 12:14:47.490 xcodebuild[11509:407746] [MT] PluginLoading: Required plug-in compatibility UUID ACA8656B-FEA8-4B6D-8E4A-93F4C95C362C for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Time1970Convertor.xcplugin' not present in DVTPlugInCompatibilityUUIDs
** BUILD FAILED **

When I open the project in XCode and try to build MDWamp iOS, I also get this error: 'GHODictionary/GHODictionary.h' file not found

If I however build MDWamp OSX, the build succeeds.

matthiasp42 avatar Jun 10 '16 10:06 matthiasp42

Did you get a chance to check on this? Regards

matthiasp42 avatar Jun 20 '16 11:06 matthiasp42