question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Boost library support for arm64 and i386 for iOS Simulator(Unable to build and run iOS Sample project for M1 iOS Sim)

See original GitHub issue

🐛 Bug Report

I’m unable to build and run the iOS/Sample project.

To Reproduce

  1. clone the repo
  2. cd flipper/iOS/Sample
  3. pod install
  4. open Sample.xcworkspace
  5. On XCode: Run the Sample target

Environment

  • MacOSX: 11.3 (20E232) Apple M1
  • XCode: 12.5 (12E262)
  • iOS Simulator iPhone 11 Pro Max, iOS 14.5
  • cocoapods: 1.10.1
  • Flipper 0.87.0 (50.0.0) - I’ve tried both the standalone Mac installer as well as the Brew one
  • boost 1.75.0_3 installed via Brew, if relevant
Screenshot 2021-05-04 at 17 45 41

I have the feeling the issue is coming from Flipper-Boost-iOSX but I’m not familiar with the way linking works. Let me know if I can give you more info.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:22 (10 by maintainers)

github_iconTop GitHub Comments

6reactions
eggybotcommented, May 15, 2021

I’m also getting this issue on my macbook pro corei7 (not M1), I tried Flipper version 0.87.0, 0.88.0, 0.89.0, 0.90.0 and 0.90.2 but still this issue is showing up. I’m using

  • OSX 11.3.1
  • Xcode 12.5
  • RN 0.64.0

thanks,

Edit: I think the issue show’s up when Flipper-Boost-iOSX added/updated. Can anyone suggest a solution with this issue?

Edit 2: I’ve found a solution which needs other flipper tools to downgrade. use_flipper!({ 'Flipper' => '0.87.0', 'Flipper-Folly' => '2.5.3', 'Flipper-RSocket' => '1.3.1' }) This will remove the Flipper-Boost-iOSX which solve the issue when reverting back to 0.87.0 found it on this link https://github.com/facebook/flipper/issues/2248#issuecomment-830060572

3reactions
priteshrnandgaonkarcommented, May 20, 2021

Using Flipper-Boost-iOSX 1.76.0.1.11 will solve the issue. With this version we now support all architectures. Let us know if there are any issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Simulator ARM64 Support for Static Libraries in M1 Machines
We have an SDK project that contains a static library (.a) with binaries for arm64, armv7 (Device) and x86_64, i386 (Simulator). When we...
Read more >
Xcode error 'building for iOS Simulator, but linking in dylib built ...
I guess what is happening is that because I excluded arm64 in build setting for iOS simulator, Xcode is attempting to run my...
Read more >
Compiling for iOS on Apple M1 - Mercari Engineering Blog
This will force Xcode to generate a x86_64-sim executable · The simulator will be running on Rosetta · The libraries will be compiled...
Read more >
found: arm64-apple-ios-simulator - You.com | The AI Search ...
I think that the library ExpoModulesCore is only for x86 (intel chip) environment. As might you think, I'm using M1 Mac. Is there...
Read more >
Apple Silicon and the library incompatibility problem for iOS ...
This works because you are telling Xcode to not build for the ARM architecture if the target device is a Simulator. For the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found