-
Notifications
You must be signed in to change notification settings - Fork 952
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
Apple M1 chip: ARM64 simulator build fails / CocoaLibEvent #1758
Comments
I was able to find this script: It seems to be what builds Forking the library and updating the build script to also build for the |
I spent some time looking into what it would take to update the binaries to be compatible and here are my findings: I worked on an updated script that will build However,
What this means is that they need to be converted into an https://github.com/krzyzanowskim/OpenSSL/blob/5fe27f6accc02fb666175f65b83c1552030f3669/scripts/create-frameworks.sh Hopefully someone can take over this work. It was a fun experiment. In the mean time I'll resort to disabling Flipper until this is resolved. |
I think I got the same error a few hours ago too, I just checked Xcode to run in Rosetta 2 and it worked :) |
Fixing this issue also helps Catalyst. IMO, we should use XCframework rather than a |
Any updates here? |
@hsavit1 it doesn't look like the base library didn't receive an update yet (https://github.com/e314521/CocoaLibEvent), once it does, we can bump our dep. I assume that the Folly project in general won't be compatible with M1 yet for the same reason. But as far as I can see M1 isn't officially support by React Native yet? So until that is the case I guess this one is pending :) |
Doesn't seem likely that the base library will ever be updated by the looks of it. I posted steps on how to fix it above, someone needs to step up. I'd do it but I'm not familiar enough with the native mac development intricacies. |
Ok, let's wait until official support lands in React Native, if I'm not
mistaken they depend on Folly as well.
…On Thu, 28 Jan 2021, 16:38 Andrei Alecu, ***@***.***> wrote:
Doesn't seem likely that the base library will ever be updated by the
looks of it.
I posted steps on how to fix it above, someone needs to step up. I'd do it
but I'm not familiar enough with the native mac development intricacies.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1758 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAN4NBHLYIZGZZZBAJI57NDS4GHJHANCNFSM4UYFFQAQ>
.
|
RN works on M1. I have several projects using it natively on M1 with native arm64 compilation (no need to use Rosetta) It only works with Flipper disabled though. See react-native-community/discussions-and-proposals#295 (comment) and other comments in that issue. |
Did it work out of the box / is it officially sorted, or did you need
manual changes? Since the issue is still open I assumed support is not
official? But I might have misread it.
…On Thu, 28 Jan 2021, 18:05 Andrei Alecu, ***@***.***> wrote:
RN works on M1.
I have several projects using it natively on M1 with native arm64
compilation (no need to use Rosetta)
It only works with Flipper disabled though. See react-native-community/discussions-and-proposals#295
(comment)
<react-native-community/discussions-and-proposals#295 (comment)>
and other comments in that issue.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1758 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAN4NBEYMOB5UNAHMJM6E4DS4GRPFANCNFSM4UYFFQAQ>
.
|
The reason I ask being, in the official case Id expect to be able to find a
similar changeset for RN or newer version for Folly
…On Thu, 28 Jan 2021, 18:13 Michel Weststrate, ***@***.***> wrote:
Did it work out of the box / is it officially sorted, or did you need
manual changes? Since the issue is still open I assumed support is not
official? But I might have misread it.
On Thu, 28 Jan 2021, 18:05 Andrei Alecu, ***@***.***> wrote:
> RN works on M1.
>
> I have several projects using it natively on M1 with native arm64
> compilation (no need to use Rosetta)
>
> It only works with Flipper disabled though. See react-native-community/discussions-and-proposals#295
> (comment)
> <react-native-community/discussions-and-proposals#295 (comment)>
> and other comments in that issue.
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#1758 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAN4NBEYMOB5UNAHMJM6E4DS4GRPFANCNFSM4UYFFQAQ>
> .
>
|
it's a discussion in the react native discussion group, not an issue on react native itself |
yes it does work out of the box, but flipper does not. I've kept the issue open because flipper does not work |
With Flipper being enabled by default and part of the official RN documentation, it seems like RN isn't going to advertise Apple Silicon support until Flipper works. So RN is blocked on this issue itself. |
Check, thanks for the update, I'll check if I can find someone for this
tomorrow. We will probably need help with testing 😊
…On Thu, 28 Jan 2021, 18:43 Andrei Alecu, ***@***.***> wrote:
With Flipper being enabled by default and part of the official RN
documentation, it seems like RN isn't going to advertise Apple Silicon
support *until* Flipper works.
So RN is blocked on this issue itself.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1758 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAN4NBFPREZIPIM5RT577FTS4GV4PANCNFSM4UYFFQAQ>
.
|
Small update: we are currently looking into it. So hopefully we will be able to address it this week or next week. It might be the case that we can address it only in the next RN release, not sure about that yet. |
See #1892 |
Better if we can leverage source code instead of pre-built binary. |
When I upgraded my Podfiles with
I get this error after building the project
|
more specifically,
|
Since the original issue has been solved and an update is released. Closing this issue. For any further questions / fallout, please open a fresh issue. |
🐛 Bug Report
The PR #1735 fixes part of the issue with building Flipper for the Arm64 iOS simulator used on M1 Macs.
Even though the fix above is not yet released, I was able to test it via the mechanism described in this post:
facebook/react-native#30543 (comment)
However, linking now fails with this error:
See:
flipper/iOS/Podspecs/Flipper-Folly.podspec
Line 20 in 031cec2
https://github.com/e314521/CocoaLibEvent
That library seems pretty obscure and doesn't seem maintained at all.
To Reproduce
Use an M1 mac, replace
use_flipper!
withuse_flipper!('Flipper-Folly' => { :podspec => 'https://raw.githubusercontent.com/facebook/flipper/master/iOS/Podspecs/Flipper-Folly.podspec' } )
. Run build in XCode, see above error.Environment
MacOS Big Sur 11.0.1
Mac Mini with M1 chip
The text was updated successfully, but these errors were encountered: