IOS build abort during Swift Compile
See original GitHub issueDescribe the bug Ios build fails on CapacitorComunityCamera
To Reproduce Steps to reproduce the behavior: Click on Product -> Build
Screenshots
Errors
Value of optional type 'WKWebView?' must be unwrapped to refer to member 'isOpaque' of wrapped base type 'WKWebView'
Value of optional type 'WKWebView?' must be unwrapped to refer to member 'backgroundColor' of wrapped base type 'WKWebView'
Value of optional type 'WKWebView?' must be unwrapped to refer to member 'scrollView' of wrapped base type 'WKWebView'
Value of optional type 'WKWebView?' must be unwrapped to refer to member 'superview' of wrapped base type 'WKWebView'
Value of optional type 'WKWebView?' must be unwrapped to a value of type 'WKWebView'
Value of type 'CameraPreview' has no member 'videoUrl'
Cannot find 'configureVideoOutput' in scope
Value of type 'CameraController' has no member 'videoOutput'
'nil' requires a contextual type
....and more...
Additional context
OS: MacOS 11.4
Xcode Version 12.5 (12E262)
Swift 5
@capacitor/ios 3.0.2
@capacitor/cli 3.0.2
@capacitor/core 3.0.2
@capacitor/android 3.0.2
@capacitor-community/camera-preview: "^1.2.1",
Add any other context about the problem here.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:6
Top Results From Across the Web
Xcode error: Abort Trap 6 | Apple Developer Forums
My project was working fine in xcode 9.*, I am using swift 4, In xode 10 it is giving compilation error "Abort Trap...
Read more >Command failed due to signal: Abort trap: 6 - swift
The problem is, that the "Fast [-O]" is slightly different written. So please go to either target and project and change the swift...
Read more >Xcode "Abort trap 6" and non-sensical compile error, maybe ...
I'm getting "Abort trap 6" when compile. Clear derived data, restarting Xcode do not fix the problem. Then search for "Uncomment" and ...
Read more >'Abort trap: 6' error when archiving project - WebViewGold
Go to Project>Target>Build Setting · Search Swift Compiler – Code Generation · Set the Optimization Level for both Debug and Release to No ......
Read more >Abort trap 6 error while archieve IOS Build. - Mohammed Ibrahim
Abort trap 6 error while archieve IOS Build. Solution : Solution 1 : Go to Project>Target>Build Setting. Search Swift Compiler — Code Generation....
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 Free
Top 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
Thanks for that! Although I couldn’t find anything for that.
I ended up switching camera-preview to
2.0.0-beta.0
. Once done, I ran:In Xcode I got this error:
When clicking, you get something like this:
Then clicking preform change I could finally deploy the app to my iPad and archive and distribute. However you do need to do this everytime you want to test through xcode
Hope this helps anyone else that runs into this.
I’m closing this issue as the current release of this plugin isn’t compatible with Capacitor 3.X. A new release is coming soon that is; if you can help beta testing it that would be fantastic! Instructions for how to beta test can be found at https://github.com/capacitor-community/camera-preview/issues/169#issuecomment-950768365