drewmccormack / ensembles

A synchronization framework for Core Data.
MIT License
1.63k stars 131 forks source link

Duplicate Dropbox files created when importing Ensembles using Cocoapods #143

Closed dragon64 closed 10 years ago

dragon64 commented 10 years ago

Trying out Ensembles (looks good so far BTW) but when trying to import into my app I get build errors. I imported using following pod file:

platform :ios, "7.0" target "NextTime" do pod "Ensembles/Dropbox", "~>1.0" end target "NextTimeTests" do end

Here are some screenshots of: 1) errors screenshot 1

2)Pods in Project navigator showing Dropbox-IOS-SDK and Ensembles/Dropbox folders screenshot 2

3 & 4) paths for duplicate file screenshot 3 screenshot 4

Appreciate any help that you can provide. Thanks

dave256 commented 10 years ago

It appears your project already had the Dropbox SDK files. If so, I suspect you can just delete the Dropbox SDK reference that you put in originally since you will still have the one CocoaPods gave you.

dragon64 commented 10 years ago

That's what I initially thought... but I started with a version of my app prior to any sync mods and without using cocoa pods. In the snapshot of the pods that I originally posted, the pods in the project navigator were inserted by the pod file (so both the Dropbox-IOS-SDK and Ensembles/Dropbox folders were not present prior). Here is a before and after using cocaopods of project nav screenshot. I must be doing something wrong but it seems that cocoa pods is added two versions of DropboxSDK. Thanks of for the help!

Before: before After: after

drewmccormack commented 10 years ago

I'll test this myself and get back to you.

dragon64 commented 10 years ago

Ok. Thanks!

Sent from my iPhone

On May 28, 2014, at 12:15 PM, Drew McCormack notifications@github.com wrote:

I'll test this myself and get back to you.

— Reply to this email directly or view it on GitHub.

drewmccormack commented 10 years ago

I don't fully understand what the issue is, but I got the same errors as you did, and got rid of them simply by not having

#import <DropboxSDK/DropboxSDK.h> 

in my code. Just use

#import <Ensembles/Ensembles.h>
#import "CDEDropboxCloudFileSystem.h"

This will automatically include the dropbox files that you need. I think using DropboxSDK mixes in Mac headers, causing the issue.

dragon64 commented 10 years ago

I also just got it too work by deleting all but 2 files in /Ensembles/Dropbox. The 2 files I kept are: CDEDropboxCloudFileSystem.h CDEDropboxCloudFileSystem.m

I believe all the files I deleted were duplicates... is this a viable option or should I go with what you suggested?

Thanks for the help...

drewmccormack commented 10 years ago

If it compiles, you are probably OK.

On 28 May 2014, at 19:24, dragon64 notifications@github.com wrote:

I also just got it too work by deleting all but 2 files in /Ensembles/Dropbox. The 2 files I kept are: CDEDropboxCloudFileSystem.h CDEDropboxCloudFileSystem.m

I believe all the files I deleted were duplicates... is this a viable option or should I go with what you suggested?

Thanks for the help...

— Reply to this email directly or view it on GitHub.