tombenner / nui

Style iOS apps with a stylesheet, similar to CSS
MIT License
3.76k stars 462 forks source link

name' is unavailable: not available on iOS #379

Open NarayanaMV opened 5 years ago

NarayanaMV commented 5 years ago

name' is unavailable: not available on iOS

/Pods/NUIParse/NUIParse/Parsers/NUIPShiftReduceParsers/NUIPShiftReduceGotoTable.m:85:58: error: 'name' is unavailable: not available on iOS return [(NSNumber *)[table[state] objectForKey:[rule name]] unsignedIntegerValue];

---> We are getting this issue while working on IOS 13.0 using XCode11 beta 6 version.

Please let us know the fix/update if any.

NarayanaMV commented 5 years ago

Screenshot 2019-08-22 at 1 29 00 PM

ataranlen commented 5 years ago

I ended up having to wipe every trace of xCode from my machine aside from the application itself and restart my machine in order to get past this error.

Arun30sep commented 5 years ago

Is this issue resolved? I've cleared all processes and restarted the system as well. but I'm still not able to resolve this issue.

paulgee31 commented 5 years ago

The only way I was able to move past this was to alter NUIPRule.h and NUIPRule.m and rename the name property to pname and replace any reference to it in the rest of the NUI classes. Not ideal but allowed my project to build again.

IlyaBoryanScopeTech commented 5 years ago

I fixed this issue adding a separate getter for the "name" variable. Details are in the my commit

Emailrus commented 5 years ago

NUIPShiftReduceGotoTable is missing import of NUIPRule.h

IlyaBoryanScopeTech commented 5 years ago

NUIPShiftReduceGotoTable is missing import of NUIPRule.h There is #import <NUIParse/NUIParse.h>

Emailrus commented 5 years ago

NUIPShiftReduceGotoTable is missing import of NUIPRule.h There is #import <NUIParse/NUIParse.h>

Nope https://github.com/tombenner/nui/blob/v0.5.5/Demo/Pods/NUIParse/NUIParse/Parsers/NUIPShiftReduceParsers/NUIPShiftReduceGotoTable.h https://github.com/tombenner/nui/blob/v0.5.5/Demo/Pods/NUIParse/NUIParse/Parsers/NUIPShiftReduceParsers/NUIPShiftReduceGotoTable.m

IlyaBoryanScopeTech commented 5 years ago

I am not an owner of this repo. Just fixed the issue and created a pull request from my repo. It is still waiting for review. Pull request

Emailrus commented 5 years ago

I was talking about how to fix this error: all you need to do here is to add missing import in this file. Also this repo had a lot of changes made in non-master branch, so it's unlikely that any PR to master will go through

IlyaBoryanScopeTech commented 5 years ago

@Emailrus You are right.

import "NUIParse.h" in NUIPShiftReduceGotoTable solves the problem. I did some extra work ))

So, the only way for now is manually update above mentioned class on the your computer.

hilalbaig commented 5 years ago

In case if someone is facing issue while running pod with @IlyaBoryanScopeTech's solution

def nuiparse_overrides
    pod 'NUIParse', :git => "https://github.com/IlyaBoryanScopeTech/NUIParse.git"
end

target 'MyProject' do
    nuiparse_overrides

    pod 'NUI' # This podspec still references 'NUIParse' but is overridden above
    pod # ...
end
IlyaBoryanScopeTech commented 5 years ago

@hilalbaig Great advice! Thanks!

fpaaske commented 4 years ago

You can also use @hilalbaig's technique with https://github.com/tombenner/NUIParse.git now.