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.

Xcode 13 error builds

See original GitHub issue

Hello,

I noticed my Xcode updated to 13 Screenshot 2021-09-22 at 16 07 46

And right after that I started getting this error at build:

Screenshot 2021-09-22 at 16 08 04 Screenshot 2021-09-22 at 16 08 25 Screenshot 2021-09-22 at 16 08 32 Screenshot 2021-09-22 at 16 08 40 Screenshot 2021-09-22 at 16 08 49

I run pod update

Downloading dependencies
Installing MultiplatformBleAdapter 0.1.7 (was 0.1.6)
Installing react-native-ble-plx 2.0.2 (was 2.0.1)
Generating Pods project
Integrating client project
Pod installation complete! There are 81 dependencies from the Podfile and 71 total pods installed.

But same error

Any guess?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:20
  • Comments:20 (2 by maintainers)

github_iconTop GitHub Comments

10reactions
wildseansycommented, Sep 29, 2021
  1. Install patch-package - npm i patch-package --save-dev
  2. Add this under patches patches/react-native-ble-plx+2.0.2.patch
diff --git a/node_modules/react-native-ble-plx/react-native-ble-plx.podspec b/node_modules/react-native-ble-plx/react-native-ble-plx.podspec
index def210f..0a92dcc 100644
--- a/node_modules/react-native-ble-plx/react-native-ble-plx.podspec
+++ b/node_modules/react-native-ble-plx/react-native-ble-plx.podspec
@@ -17,5 +17,5 @@ Pod::Spec.new do |s|
   s.compiler_flags = '-DMULTIPLATFORM_BLE_ADAPTER'

   s.dependency 'React'
-  s.dependency 'MultiplatformBleAdapter', '0.1.7'
+  s.dependency 'MultiplatformBleAdapter', '0.1.9'
 end
  1. Add yarn patch-package to your “postinstall” script in your package.json
{
  "scripts": {
    "postinstall": "yarn patch-package",
  }
}
  1. Add this to your Podfile
pod 'MultiplatformBleAdapter', :git => 'https://github.com/below/MultiPlatformBleAdapter', :tag => '0.1.9'

This points to a fork that @below released while we wait

More info in https://www.npmjs.com/package/patch-package, but basically you make whatever changes you need under node_modules then run npx patch-package <package you edited>. This generates a diff which then is expressed whenever you run yarn install. In this case, you just need to upgrade what MultiplatformBleAdapter cocoapod the react-native-ble-plx points to, from 0.1.7 to 0.1.9. 0.1.9 works with XCode 13, 0.1.7 doesn’t

Hi @wildseansy sorry to bother you but could you indicate what are the steps to follow to solve the error? Reading and replicating what was said in the thread you shared, I can’t solve the problem.

8reactions
marcojcommented, Nov 9, 2021

This has been fixed with the 2.0.3 release. You can close this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xcode 13 beta | Failed to build mo… | Apple Developer Forums
My problem exists only when I run xcodebuild from the command line. Toolchain and xcode version is set correctly to beta. Are there...
Read more >
IOS build errors - Xcode 13 - Stack Overflow
Below are errors while building in latest xcode 13 & Mac Apple Pro M1 chip <unknown>:0: error: module map file ...
Read more >
How to fix the error "The developer of this app needs to update ...
As a security measure, iOS refuses to launch an application with a missing or invalid signature. The signature generated by a build with...
Read more >
Oh dear! Build errors? - LoopDocs - GitHub Pages
Solution: Go to your Xcode -> Preferences (or Settings) and under the Locations tab, select your Xcode version (the figure shows 14.0.1 -...
Read more >
Build error with XCode 13 - MBIENTLAB
Hey all, Since the release of xcode 13 there has been a build error in the DFU library. Any news on a fix?...
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