nui icon indicating copy to clipboard operation
nui copied to clipboard

name' is unavailable: not available on iOS

Open NarayanaMV opened this issue 6 years ago • 14 comments

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 avatar Aug 22 '19 08:08 NarayanaMV

Screenshot 2019-08-22 at 1 29 00 PM

NarayanaMV avatar Aug 22 '19 08:08 NarayanaMV

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.

ataranlen avatar Sep 24 '19 17:09 ataranlen

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.

Arun30sep avatar Sep 25 '19 06:09 Arun30sep

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.

paulgee31 avatar Sep 25 '19 08:09 paulgee31

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

IlyaBoryanScopeTech avatar Sep 27 '19 11:09 IlyaBoryanScopeTech

NUIPShiftReduceGotoTable is missing import of NUIPRule.h

Emailrus avatar Oct 04 '19 07:10 Emailrus

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

IlyaBoryanScopeTech avatar Oct 04 '19 11:10 IlyaBoryanScopeTech

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

Emailrus avatar Oct 04 '19 12:10 Emailrus

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

IlyaBoryanScopeTech avatar Oct 04 '19 13:10 IlyaBoryanScopeTech

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

Emailrus avatar Oct 04 '19 13:10 Emailrus

@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.

IlyaBoryanScopeTech avatar Oct 04 '19 13:10 IlyaBoryanScopeTech

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

hilalbaig avatar Oct 09 '19 10:10 hilalbaig

@hilalbaig Great advice! Thanks!

IlyaBoryanScopeTech avatar Oct 09 '19 11:10 IlyaBoryanScopeTech

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

fpaaske avatar Oct 27 '20 12:10 fpaaske