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.

IOS build abort during Swift Compile

See original GitHub issue

Describe the bug Ios build fails on CapacitorComunityCamera

To Reproduce Steps to reproduce the behavior: Click on Product -> Build

Screenshots image image

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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:6

github_iconTop GitHub Comments

1reaction
Scaaleescommented, Aug 20, 2021

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:

ionic cap sync ios
cd ios/App
pod install

In Xcode I got this error:

Screenshot 2021-08-20 at 14 54 35

When clicking, you get something like this:

Screenshot 2021-08-20 at 14 54 50

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.

0reactions
pbowyercommented, Oct 25, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

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