Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift-2.0 Branch Error #344

Closed
acegreen opened this issue Sep 8, 2015 · 12 comments
Closed

Swift-2.0 Branch Error #344

acegreen opened this issue Sep 8, 2015 · 12 comments

Comments

@acegreen
Copy link

acegreen commented Sep 8, 2015

I'm getting the following issue:

This is happening in the "ChartSelectionDetail" file

Some are saying its an Xcode bug.

  • Xcode 7 beta 6
  • Embedded framework method

screen shot 2015-09-07 at 10 15 42 pm

@acegreen
Copy link
Author

acegreen commented Sep 8, 2015

More info on this:

Straight from the logs:

/Users/AceGreen/Dropbox/iOS/Xcode Projects/StockSwipe/Charts/Classes/Utils/ChartSelectionDetail.swift:76:19: error: ambiguous use of 'dataSet'
if (object!.dataSet !== _dataSet)
^
/Users/AceGreen/Dropbox/iOS/Xcode Projects/StockSwipe/Charts/Classes/Utils/ChartSelectionDetail.swift:47:16: note: found this candidate
public var dataSet: ChartDataSet?
^
Charts.ChartSelectionDetail:7:13: note: found this candidate
@objc var dataSet: ChartDataSet? { get }
^

@liuxuan30
Copy link
Member

I am with latest Xcode 6, not seeing this.... Tried clean & rebuild?

@acegreen
Copy link
Author

acegreen commented Sep 8, 2015

Update: Added the same instance of the library (copied from my project where it gives me the error) to a test project and it works.

Something in my project is causing a clash

@acegreen
Copy link
Author

acegreen commented Sep 8, 2015

Issue Resolved:

The variable above seems to clash somewhere, changing it from private to normal, solves the problem

var dataSet: ChartDataSet?
{
    return _dataSet
}

@hooman96
Copy link

hooman96 commented Sep 8, 2015

Can we convert the syntax with Xcode Beta?

@931743010
Copy link

convert the syntax with Xcode7,there have five syntax can‘t be fixed

@nikhil-pagalguy
Copy link

I am still getting this error "/Users/Niks/Music/smartbanking1/Charts/Classes/Utils/ChartSelectionDetail.swift:76:19: Ambiguous use of 'dataSet'"

I am using latest master branch (yesterday). XCode 7.0. Please help.... Tried everything. Even removing public from function does not help......

@danielgindi
Copy link
Collaborator

I assume you have dragged Charts' files into your project. Please remove them all, and copy the fresh files to your project.

@nikhil-pagalguy
Copy link

hey dan, thanks for quick reply. I have dragged 'Charts' module to project and added 'Charts.framework' into embedded binaries for my target. Are you suggesting that I delete that module and copy all files inside module to my project itself?

@danielgindi
Copy link
Collaborator

No, I just thought that your problem may be because of dragging the files themselves, and maybe a file missing or not up to date.

Can you create a simple project that demonstrates the compilation problem? Because we are not seeing this.

@nikhil-pagalguy
Copy link

Hey Dan, I created seperate project but this error does not occur there. So, I think its messing with one of the variable in my project only. I have mulitple libraries like Restkit, AFNetworking and Shinobi Charts along with ios charts. I will try to remove all and then may be try to add them again. But do you have any idea why this error occurs only in new xCode 7 and swift 2? I have been your excellent library for about year now and it worked great for me. but this little thing has caused me about 24 hours now. Let me know....

And one more query, does it help using pod in this perticular situation?

@danielgindi
Copy link
Collaborator

I have no idea, as there is not problem actually. It can be a bug in Xcode
7... It can be that you need to clean up the "derived data" folder

On Wed, Sep 30, 2015 at 1:02 PM, nikhil-pagalguy notifications@github.com
wrote:

Hey Dan, I created seperate project but this error does not occur there.
So, I think its messing with one of the variable in my project only. I have
mulitple libraries like Restkit, AFNetworking and Shinobi Charts along with
ios charts. I will try to remove all and then may be try to add them again.
But do you have any idea why this error occurs only in new xCode 7 and
swift 2? I have been your excellent library for about year now and it
worked great for me. but this little thing has caused me about 24 hours
now. Let me know....


Reply to this email directly or view it on GitHub
#344 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants