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.

Crash while launching app: Swift class extensions and categories on Swift classes are not allowed to have +load methods (lldb)

See original GitHub issue

Description of the problem: The application compiles successfully but does not start. On start up, throws error: objc [1138]: Swift class extensions and categories on Swift classes are not allowed to have + load methods(Lldb).

Affected platform

  • Android
  • iOS
  • electron
  • web

OS of the development machine

  • Windows
  • macOS
  • linux

Other information: Tested without any plugins or changes.

Capacitor version: 1.0.0-beta.17

node version: 11.9.0

npm version: 6.8.0

CocoaPods version: 1.6.0

Steps to reproduce: Use latest Xcode 10.2 beta 3 (10P99q) and build any app. Use latest iOS 12.2 to test it.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jcesarmobilecommented, Feb 24, 2019
0reactions
jcesarmobilecommented, Mar 29, 2019

make sure you have "@capacitor/ios": "^1.0.0-beta.19" in your package.json, not just the CLI 1.0.0-beta.19. Then do npx cap update ios, npx cap open ios and finally Product -> Clean Build Folder on Xcode, as Xcode 10 doesn’t rebuild the changes in CocoaPods libraries and the clean makes it build on next run.

Read more comments on GitHub >

github_iconTop Results From Across the Web

objective c | XCode 11.3 running on iOS 13.3 - Stack Overflow
Swift class extensions and categories on Swift classes are not allowed to have +load methods error | XCode 11.3 running on iOS 13.3....
Read more >
Crash on launch when adding a Swift package with a binary ...
I have compiled Google's WebRTC library and bundled up everything into xcframework in order to distribute as a binary framework in Swift package...
Read more >
Variable Formatting - The LLDB Debugger - LLVM
LLDB has a data formatters subsystem that allows users to define custom display options for their variables. Usually, when you type frame variable...
Read more >
Reverse Engineering Tools - iPhone Development Wiki
dsdump is a tool (compatible with MacOS and and iOS), notable for being also able to dump Swift metadata. It's self-described as "An...
Read more >
Release Notes | Tealium for iOS (Swift) version 1.x
For iOS versions 10.3.3 and 10.3.4, there is an Xcode compiler bug that may cause a crash as soon as the app is...
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