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

NSExpression function is forbidden #22

Closed
losdwind opened this issue Sep 9, 2022 · 5 comments
Closed

NSExpression function is forbidden #22

losdwind opened this issue Sep 9, 2022 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@losdwind
Copy link

losdwind commented Sep 9, 2022

Describe the bug

Refer to this patch Fix for "NSExpression function is forbidden" #411
It also happens in my environment using Amplify Geo Plugin.
2022-09-09 19:59:48.259147+0800 Feunote[20138:3421145] [general] NSPredicate: Use of 'mgl_interpolate:withCurveType:parameters:stops:' as an NSExpression function is forbidden. 2022-09-09 19:59:48.259592+0800 Feunote[20138:3421145] [general] NSPredicate: Use of 'mgl_step:from:stops:' as an NSExpression function is forbidden.

Steps To Reproduce

Steps to reproduce the behavior:
1. Add amplify-ios-maplibre
2. import AmplifyMapLibreUI
3. add AMLMapView() anywhere under ContentView
4. See error

Expected behavior

Would like to have a synchronous fix.

Amplify MapLibre Adapter Version

1.0.0

Swift version

5.6.1

Xcode version

13.4.1(13F100)

Is this a regression?

No

Regression additional context

No response

Device

iPhone 11 Pro Simulator

iOS Version

iOS 15.5

Specific to simulators

No response

Additional context

No response

@atierian
Copy link
Member

Thanks for opening this issue. We'll investigate using an updated version that includes this fix. Is this causing build / compiler errors for you?

@atierian atierian self-assigned this Sep 21, 2022
@atierian atierian added the bug Something isn't working label Sep 21, 2022
@losdwind
Copy link
Author

losdwind commented Oct 8, 2022

Thanks for opening this issue. We'll investigate using an updated version that includes this fix. Is this causing build / compiler errors for you?

Yes, It makes my code cannot compile on iOS 15.5 and iOS16. I have to turn to Apple MapKit Library as a workaround.

@atierian
Copy link
Member

atierian commented Apr 7, 2023

Providing an overdue update here.
I did see the warning you mentioned. Is this not compiling for you because you're using -warnings-as-errors?

I tested with MapLibre v5.13.0 (which includes NSExpression fix you linked), but this unfortunately causes other issues around cluster rendering that prevent us from being able to upgrade.

We'll continue to investigate and update with any new information. Thanks for your patience.

@atierian atierian removed their assignment Nov 21, 2023
@ruisebas ruisebas self-assigned this May 14, 2024
@ruisebas
Copy link
Member

Fixed in 2.1.0

Copy link

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants