Agontuk / react-native-geolocation-service

React native geolocation service for iOS and android
https://www.npmjs.com/package/react-native-geolocation-service
MIT License
1.61k stars 291 forks source link

support xcode 13 #313

Closed ease-space closed 2 years ago

ease-space commented 3 years ago

i disabled flipper https://github.com/facebook/react-native/issues/31733 but app error build with xcode 13

Снимок экрана 2021-09-21 в 22 31 05
JZambo9 commented 3 years ago

I'm having the same issue. Is there anything that can be done from my part to fix it?

nithinyell commented 3 years ago

I'm having the same issue. Is there anything that can be done from my part to fix it?

@JZambo9

Update to React Native 0.65

hanifmhd commented 3 years ago

I'm having the same issue. Is there anything that can be done from my part to fix it?

@JZambo9

Update to React Native 0.65

is it the only solution?

temaput commented 3 years ago

As a temporary solution, adding empty swift file in XCode worked for me. Take a look here: https://github.com/zalando/SwiftMonkey/issues/80#issuecomment-604994492 No need for autogenerating the bridge.h file, just the .swift is enough

alexanderblackh commented 3 years ago

As a temporary solution, adding empty swift file in XCode worked for me. Take a look here: zalando/SwiftMonkey#80 (comment) No need for autogenerating the bridge.h file, just the .swift is enough

This is the actual solution for this error, This can and sometimes will happen on a fresh react native build (Even happened earlier today when debugging issues unrelated to this project).

angeltodorovyara commented 3 years ago

I'm having the same issue. Is there anything that can be done from my part to fix it?

@JZambo9

Update to React Native 0.65

I've upgraded to 0.65.1 and that was the point at what this bug happened for me

neildevas commented 3 years ago

@temaput s solution worked for me. Does this file need to be present to create a working production build?

vladles commented 2 years ago

Faced with the same problem. I tried different solutions:

Nothing happened.

And I found the problem...

_If you upgrade your application from react-native versions <= 0.65.* you don't have a main swift patch in "LIBRARY_SEARCHPATHS" setting.

After I added : "$(SDKROOT)/usr/lib/swift" route in LIBRARY_SEARCH_PATHS array. - compiling was successful finished.

2021-10-12_18-47-28 (2)

PS. My package.json.

    "react": "^17.0.2",
    "react-native": "0.66.0",
ShaeerN-GO commented 2 years ago

the same error here -_- with xcode 13. React-native : 0.65.1

Agontuk commented 2 years ago

Sorry for the late reply, I'll upgrade to xcode 13 and try to reproduce the issue.

Agontuk commented 2 years ago

Unable to reproduce this in xcode 13 with RN 0.65, build working fine for me. Not sure if it's M1 specific as I'm using intel mac.

As a temporary solution, adding empty swift file in XCode worked for me. Take a look here: zalando/SwiftMonkey#80 (comment) No need for autogenerating the bridge.h file, just the .swift is enough

This is already described in the setup docs. If you don't do this, build will fail.

Agontuk commented 2 years ago

Closing this as this is not reproducible, and the solution presented here is already described in the setup section