Crash while launching app: Swift class extensions and categories on Swift classes are not allowed to have +load methods (lldb)
See original GitHub issueDescription 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:
- Created 5 years ago
- Comments:10 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This was fixed here https://github.com/ionic-team/capacitor/pull/1242
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 donpx 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.