awslabs / amazon-kinesis-video-streams-webrtc-sdk-ios

iOS SDK for interfacing with the Amazon Kinesis Video Streams Signaling Service.
Apache License 2.0
66 stars 29 forks source link

Error running demo on MAC (mac book m1 pro). #60

Closed tubzby closed 1 year ago

tubzby commented 1 year ago

I have followed the instructions to replace some source files with customized values. When I clicked the "Connect as Viewer" button, it crashed.

Version: 8e1aa7ca613b28feb8550e4b90fbf7e4bb551f03

Full log:

2022-11-19 22:21:43.108565+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] [default] LSPrefs: could not find untranslocated node for <FSNode 0x600001244220> { isDir = ?, path = '/private/var/folders/k5/lgydgmds5zjdrsxvw3x6bb400000gn/X/04261D02-F795-5C98-988C-1668E2D48459/d/Wrapper/AWSKinesisVideoWebRTCDemoApp.app' }, proceeding on the assumption it is not translocated: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"
2022-11-19 22:21:43.111352+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] [default] LSPrefs: could not find untranslocated node for <FSNode 0x600001244220> { isDir = ?, path = '/private/var/folders/k5/lgydgmds5zjdrsxvw3x6bb400000gn/X/04261D02-F795-5C98-988C-1668E2D48459/d/Wrapper/AWSKinesisVideoWebRTCDemoApp.app' }, proceeding on the assumption it is not translocated: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"
2022-11-19 22:21:43.113800+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] [default] LSPrefs: could not find untranslocated node for <FSNode 0x600001244220> { isDir = ?, path = '/private/var/folders/k5/lgydgmds5zjdrsxvw3x6bb400000gn/X/04261D02-F795-5C98-988C-1668E2D48459/d/Wrapper/AWSKinesisVideoWebRTCDemoApp.app' }, proceeding on the assumption it is not translocated: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"
2022-11-19 22:21:43.872523+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] Unable to load the Interface Builder file VideoViewController.nib because the object archive is missing. Valid nib files must contain either keyedobjects.nib, objects.nib, or data.nib. Full path: /private/var/folders/k5/lgydgmds5zjdrsxvw3x6bb400000gn/X/04261D02-F795-5C98-988C-1668E2D48459/d/Wrapper/AWSKinesisVideoWebRTCDemoApp.app/VideoViewController.nib
2022-11-19 22:21:43.912759+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] [Assert] UINavigationBar decoded as unlocked for UINavigationController, or navigationBar delegate set up incorrectly. Inconsistent configuration may cause problems. navigationController=<UINavigationController: 0x15382d000>, navigationBar=<UINavigationBar: 0x152f09410; frame = (0 0; 0 50); opaque = NO; autoresize = W; gestureRecognizers = <NSArray: 0x600001ce4000>; layer = <CALayer: 0x600001236240>> delegate=0x15382d000
2022-11-19 22:21:43.929994+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:21:43.930242+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:21:43.930772+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:21:43.930943+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:21:43.931232+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:21:43.931435+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:21:43.931648+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:21:43.931782+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:21:43.932051+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] OSStatus error: [-34018] Security error has occurred.
The user is signedOut.
2022-11-19 22:21:43.933600+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] [Assert] UINavigationBar decoded as unlocked for UINavigationController, or navigationBar delegate set up incorrectly. Inconsistent configuration may cause problems. navigationController=<UINavigationController: 0x153045000>, navigationBar=<UINavigationBar: 0x152e1a700; frame = (0 0; 0 50); opaque = NO; autoresize = W; gestureRecognizers = <NSArray: 0x600001ce5410>; layer = <CALayer: 0x60000121b280>> delegate=0x153045000
2022-11-19 22:21:43.952969+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] [UIDevice.orientation] Device orientations are not supported in Mac Catalyst processes. Ignoring attempt to set UIDevice orientation to: 1
2022-11-19 22:21:43.960095+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] [Storyboard] Unknown class zz in Interface Builder file.
2022-11-19 22:21:43.969692+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] [LayoutConstraints] Unable to simultaneously satisfy constraints.
    Probably at least one of the constraints in the following list is one you don't want. 
    Try this: 
        (1) look at each constraint and try to figure out which you don't expect; 
        (2) find the code that added the unwanted constraint or constraints and fix it. 
(
    "<NSLayoutConstraint:0x600003121680 connectasmasterbutton.width == 200   (active, names: connectasmasterbutton:0x152e0b190 )>",
    "<NSLayoutConstraint:0x6000031693b0 UIStackView:0x154106650.centerX == UIView:0x1541064a0.centerX   (active)>",
    "<NSLayoutConstraint:0x600003169450 UIStackView:0x154106650.leading == UIView:0x1541064a0.leadingMargin + 50   (active)>",
    "<NSLayoutConstraint:0x60000312c500 'UISV-alignment' channelnametextfield.leading == connectasmasterbutton.leading   (active, names: channelnametextfield:0x153035600, connectasmasterbutton:0x152e0b190 )>",
    "<NSLayoutConstraint:0x60000312c6e0 'UISV-alignment' channelnametextfield.trailing == connectasmasterbutton.trailing   (active, names: channelnametextfield:0x153035600, connectasmasterbutton:0x152e0b190 )>",
    "<NSLayoutConstraint:0x60000312c410 'UISV-canvas-connection' UIStackView:0x154106650.leading == channelnametextfield.leading   (active, names: channelnametextfield:0x153035600 )>",
    "<NSLayoutConstraint:0x60000312c460 'UISV-canvas-connection' H:[channelnametextfield]-(0)-|   (active, names: channelnametextfield:0x153035600, '|':UIStackView:0x154106650 )>",
    "<NSLayoutConstraint:0x60000312c820 'UIView-Encapsulated-Layout-Width' UIView:0x1541064a0.width == 1330   (active)>",
    "<NSLayoutConstraint:0x600003169590 'UIView-leftMargin-guide-constraint' H:|-(20)-[UILayoutGuide:0x600002b64380'UIViewLayoutMarginsGuide'](LTR)   (active, names: '|':UIView:0x1541064a0 )>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x600003121680 connectasmasterbutton.width == 200   (active, names: connectasmasterbutton:0x152e0b190 )>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
2022-11-19 22:21:43.970399+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] [LayoutConstraints] Unable to simultaneously satisfy constraints.
    Probably at least one of the constraints in the following list is one you don't want. 
    Try this: 
        (1) look at each constraint and try to figure out which you don't expect; 
        (2) find the code that added the unwanted constraint or constraints and fix it. 
(
    "<NSLayoutConstraint:0x600003120460 clientidtextfield.width == 250   (active, names: clientidtextfield:0x153094200 )>",
    "<NSLayoutConstraint:0x6000031693b0 UIStackView:0x154106650.centerX == UIView:0x1541064a0.centerX   (active)>",
    "<NSLayoutConstraint:0x600003169450 UIStackView:0x154106650.leading == UIView:0x1541064a0.leadingMargin + 50   (active)>",
    "<NSLayoutConstraint:0x60000312c4b0 'UISV-alignment' channelnametextfield.leading == clientidtextfield.leading   (active, names: channelnametextfield:0x153035600, clientidtextfield:0x153094200 )>",
    "<NSLayoutConstraint:0x60000312c640 'UISV-alignment' channelnametextfield.trailing == clientidtextfield.trailing   (active, names: channelnametextfield:0x153035600, clientidtextfield:0x153094200 )>",
    "<NSLayoutConstraint:0x60000312c410 'UISV-canvas-connection' UIStackView:0x154106650.leading == channelnametextfield.leading   (active, names: channelnametextfield:0x153035600 )>",
    "<NSLayoutConstraint:0x60000312c460 'UISV-canvas-connection' H:[channelnametextfield]-(0)-|   (active, names: channelnametextfield:0x153035600, '|':UIStackView:0x154106650 )>",
    "<NSLayoutConstraint:0x60000312c820 'UIView-Encapsulated-Layout-Width' UIView:0x1541064a0.width == 1330   (active)>",
    "<NSLayoutConstraint:0x600003169590 'UIView-leftMargin-guide-constraint' H:|-(20)-[UILayoutGuide:0x600002b64380'UIViewLayoutMarginsGuide'](LTR)   (active, names: '|':UIView:0x1541064a0 )>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x600003120460 clientidtextfield.width == 250   (active, names: clientidtextfield:0x153094200 )>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
2022-11-19 22:21:43.970688+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] [LayoutConstraints] Unable to simultaneously satisfy constraints.
    Probably at least one of the constraints in the following list is one you don't want. 
    Try this: 
        (1) look at each constraint and try to figure out which you don't expect; 
        (2) find the code that added the unwanted constraint or constraints and fix it. 
(
    "<NSLayoutConstraint:0x6000031693b0 UIStackView:0x154106650.centerX == UIView:0x1541064a0.centerX   (active)>",
    "<NSLayoutConstraint:0x600003169450 UIStackView:0x154106650.leading == UIView:0x1541064a0.leadingMargin + 50   (active)>",
    "<NSLayoutConstraint:0x600003121130 channelnametextfield.width == 250   (active, names: channelnametextfield:0x153035600 )>",
    "<NSLayoutConstraint:0x60000312c410 'UISV-canvas-connection' UIStackView:0x154106650.leading == channelnametextfield.leading   (active, names: channelnametextfield:0x153035600 )>",
    "<NSLayoutConstraint:0x60000312c460 'UISV-canvas-connection' H:[channelnametextfield]-(0)-|   (active, names: channelnametextfield:0x153035600, '|':UIStackView:0x154106650 )>",
    "<NSLayoutConstraint:0x60000312c820 'UIView-Encapsulated-Layout-Width' UIView:0x1541064a0.width == 1330   (active)>",
    "<NSLayoutConstraint:0x600003169590 'UIView-leftMargin-guide-constraint' H:|-(20)-[UILayoutGuide:0x600002b64380'UIViewLayoutMarginsGuide'](LTR)   (active, names: '|':UIView:0x1541064a0 )>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x600003121130 channelnametextfield.width == 250   (active, names: channelnametextfield:0x153035600 )>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
2022-11-19 22:21:43.988951+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] [TraitCollection] Class _UIFindNavigatorViewController overrides the -traitCollection getter, which is not supported. If you're trying to override traits, you must use the appropriate API.
2022-11-19 22:21:44.062114+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] [default] LSPrefs: could not find untranslocated node for <FSNode 0x600001244220> { isDir = ?, path = '/private/var/folders/k5/lgydgmds5zjdrsxvw3x6bb400000gn/X/04261D02-F795-5C98-988C-1668E2D48459/d/Wrapper/AWSKinesisVideoWebRTCDemoApp.app' }, proceeding on the assumption it is not translocated: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"
2022-11-19 22:21:44.768812+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] SignIn : viewDidAppear
2022-11-19 22:22:03.652867+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:22:03.654455+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:22:03.654673+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:22:03.654862+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:22:05.219956+0800 AWSKinesisVideoWebRTCDemoApp[9385:128985] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:22:05.220445+0800 AWSKinesisVideoWebRTCDemoApp[9385:128985] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:22:05.220807+0800 AWSKinesisVideoWebRTCDemoApp[9385:128985] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:22:05.265132+0800 AWSKinesisVideoWebRTCDemoApp[9385:128985] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:22:05.837278+0800 AWSKinesisVideoWebRTCDemoApp[9385:128985] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:22:05.837749+0800 AWSKinesisVideoWebRTCDemoApp[9385:128985] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:22:05.838119+0800 AWSKinesisVideoWebRTCDemoApp[9385:128985] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:22:05.838450+0800 AWSKinesisVideoWebRTCDemoApp[9385:128985] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:22:05.839429+0800 AWSKinesisVideoWebRTCDemoApp[9385:128985] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:22:05.839782+0800 AWSKinesisVideoWebRTCDemoApp[9385:128985] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:22:05.840079+0800 AWSKinesisVideoWebRTCDemoApp[9385:128985] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:22:05.840381+0800 AWSKinesisVideoWebRTCDemoApp[9385:128985] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:22:05.840677+0800 AWSKinesisVideoWebRTCDemoApp[9385:128985] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:22:05.842613+0800 AWSKinesisVideoWebRTCDemoApp[9385:128985] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:22:05.842861+0800 AWSKinesisVideoWebRTCDemoApp[9385:128985] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:22:05.846385+0800 AWSKinesisVideoWebRTCDemoApp[9385:128985] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:22:05.846618+0800 AWSKinesisVideoWebRTCDemoApp[9385:128985] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:22:05.846840+0800 AWSKinesisVideoWebRTCDemoApp[9385:128985] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:22:05.847062+0800 AWSKinesisVideoWebRTCDemoApp[9385:128985] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:22:05.847276+0800 AWSKinesisVideoWebRTCDemoApp[9385:128985] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:22:05.848525+0800 AWSKinesisVideoWebRTCDemoApp[9385:129013] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:22:05.852127+0800 AWSKinesisVideoWebRTCDemoApp[9385:129013] OSStatus error: [-34018] Security error has occurred.
2022-11-19 22:22:05.862094+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] [API] cannot add handler to 3 from 3 - dropping
2022-11-19 22:22:08.973633+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] [API] cannot add handler to 3 from 3 - dropping
2022-11-19 22:22:11.113222+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] [API] cannot add handler to 3 from 3 - dropping
Generated clientID is 99819e1a-d7fd-4c2e-8680-830b8ca805c3
2022-11-19 22:22:13.488625+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] Warning: A long-running operation is being executed on the main thread. 
 Break on awsbf_warnBlockingOperationOnMainThread() to debug.
2022-11-19 22:22:13.489950+0800 AWSKinesisVideoWebRTCDemoApp[9385:128974] OSStatus error: [-34018] Security error has occurred.
Error describing channel: notSignedIn(message: "User is not signed in to Cognito User Pool, please sign in to use this API.")
2022-11-19 22:22:13.492009+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] Warning: A long-running operation is being executed on the main thread. 
 Break on awsbf_warnBlockingOperationOnMainThread() to debug.
2022-11-19 22:22:13.492609+0800 AWSKinesisVideoWebRTCDemoApp[9385:128974] OSStatus error: [-34018] Security error has occurred.
Error creating channel notSignedIn(message: "User is not signed in to Cognito User Pool, please sign in to use this API.")
AWSKinesisVideoWebRTCDemoApp/ChannelConfigurationViewController.swift:141: Fatal error: Unexpectedly found nil while unwrapping an Optional value
2022-11-19 22:22:13.501453+0800 AWSKinesisVideoWebRTCDemoApp[9385:128432] AWSKinesisVideoWebRTCDemoApp/ChannelConfigurationViewController.swift:141: Fatal error: Unexpectedly found nil while unwrapping an Optional value
(lldb) 
sirknightj commented 1 year ago

Hey @tubzby,

I noticed a message in your logs:

Error creating channel notSignedIn(message: "User is not signed in to Cognito User Pool, please sign in to use this API.")

It's possible that some values are switched around accidentally, could you double-check that all the values match?

{
  "Version": "1.0",
  "CredentialsProvider": {
    "CognitoIdentity": {
      "Default": {
        "PoolId": "us-west-2:01234567-89ab-cdef-0123-456789abcdef",
        "Region": "us-west-2"
      }
    }
  },
  "IdentityManager": {
    "Default": {}
  },
  "CognitoUserPool": {
    "Default": {
      "AppClientSecret": "abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmno",
      "AppClientId": "0123456789abcdefghijklmnop",
      "PoolId": "us-west-2_qRsTuVwXy",
      "Region": "us-west-2"
    }
  }
}

And also:

let cognitoIdentityUserPoolRegion = AWSRegionType.USWest2
let cognitoIdentityUserPoolId = "us-west-2_qRsTuVwXy"
let cognitoIdentityUserPoolAppClientId = "0123456789abcdefghijklmnop"
let cognitoIdentityUserPoolAppClientSecret = "abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmno"
let cognitoIdentityPoolId = "us-west-2:01234567-89ab-cdef-0123-456789abcdef"
sirknightj commented 1 year ago

Closing due to no response. Seems to be an issue with app signing + a specific ios version.

See https://stackoverflow.com/a/33811635