How to enable sharing?

Description
How to enable sharing, I haven’t done anything about the sharing process, it is the default setting, what should I do to enable the sharing function?
屏幕快照 2019-12-17 11.04.18

let service = ZoomSDK.shared().getMeetingService()
  service?.startMeeting(withZAK: zak!, userType: SDKUserType_APIUser, userID: userID, userToken: token, displayName: displayName, meetingNumber: number, isDirectShare: false, sharedApp: 0, isVideoOff: false, isAuidoOff: false, vanityID: nil)

Which version?
v4.4.56627.1029

Hi
If you want to enable sharing ,need to call “- (ZoomSDKError)startAppShare:(CGWindowID)windowID” or “- (ZoomSDKError)startMonitorShare:(CGDirectDisplayID)monitorID”.
please see the comment in the interface description:

1 Like

@bella.tu
zoomdemo[21622:1182414] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) ‘Permission denied’, port = 0x19b07, name = ‘com.zoom.capturethread’
See /usr/include/servers/bootstrap_defs.h for the error codes.
This is an error reported after clicking Share, it should be a certain permission, I tried to modify some, but still can’t find it. Hope for help

Hi
which version do you used Mac OS?Please send us the log file.
Note:
1.You should in-meeting status to start sharing
2.please used the right param type.

I think you didn’t understand my idea. The problem I am currently experiencing is that the advanced second camera can be shared, but other options cannot be shared. And according to his error, I think it may be a problem of permissions.
Demo[9226:360267] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x17c3f, name = 'com.zoom.capturethread' See /usr/include/servers/bootstrap_defs.h for the error codes.

屏幕快照 2019-12-23 16.51.48

I am not a custom sharing feature, I just want to use the default sharing feature, thank you, I need help

You need add the entitlement <key>com.apple.security.application-groups</key> to your app (info.plist)

 <key>com.apple.security.application-groups</key>
<array>
<string>com.zoom.capturethread</string>
</array>
2019-12-25 10:26:41.908059+0800 OnemeetingDemo[26348:545951] WARNING: The Gestalt selector gestaltSystemVersion is returning 10.9.6 instead of 10.14.6. This is not a bug in Gestalt -- it is a documented limitation. Use NSProcessInfo's operatingSystemVersion property to get correct system version number.
Call location:
2019-12-25 10:26:41.908183+0800 OnemeetingDemo[26348:545951] 0   CarbonCore                          0x00007fff4d443fee ___Gestalt_SystemVersion_block_invoke + 112
2019-12-25 10:26:41.908201+0800 OnemeetingDemo[26348:545951] 1   libdispatch.dylib                   0x0000000101667f1b _dispatch_client_callout + 8
2019-12-25 10:26:41.908216+0800 OnemeetingDemo[26348:545951] 2   libdispatch.dylib                   0x0000000101669ba9 _dispatch_once_callout + 87
2019-12-25 10:26:41.908230+0800 OnemeetingDemo[26348:545951] 3   CarbonCore                          0x00007fff4d3e5992 _Gestalt_SystemVersion + 945
2019-12-25 10:26:41.908244+0800 OnemeetingDemo[26348:545951] 4   CarbonCore                          0x00007fff4d3dee7c Gestalt + 149
2019-12-25 10:26:41.908258+0800 OnemeetingDemo[26348:545951] 5   ZoomSDK                             0x0000000100b6faa6 RetrieveShareRawDataChannel + 681558
2019-12-25 10:26:41.908271+0800 OnemeetingDemo[26348:545951] 6   ZoomSDK                             0x0000000100b7021e RetrieveShareRawDataChannel + 683470
2019-12-25 10:26:43.692237+0800 OnemeetingDemo[26348:545951] dynamic_cast error 2: One or more of the following type_info's  has hidden visibility.  They should all have public visibility.   N3Cmm22ICmmMessageQueueClientE, 21CSBConfUIModuleClient, N3Cmm13ISBUIProviderE.
ZoomSDKMeetingStatus_Connecting
2019-12-25 10:26:55.520705+0800 OnemeetingDemo[26348:545951] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x5f07, name = 'cpthostsink.service.100008.26348.148239137'
See /usr/include/servers/bootstrap_defs.h for the error codes.
ZoomSDKMeetingStatus_InMeeting
2019-12-25 10:26:56.390007+0800 OnemeetingDemo[26348:546407] PLClientLogging: unknown permission type 2
ZoomSDKMeetingStatus_AudioReady
2019-12-25 10:27:07.075514+0800 OnemeetingDemo[26348:545951] *** attempt to post distributed notification 'ZoomStartNewSendSharingAndStopOldOne' thwarted by sandboxing.

Date/Time:     Wed Dec 25 10:27:07 2019
OS Version:    18G103
Application:   OnemeetingDemo

Backtrace:
0   CoreFoundation                      0x00007fff4c28fe6d __CFGenerateReport + 197
1   CoreFoundation                      0x00007fff4c10765f _CFXNotificationPost + 1396
2   Foundation                          0x00007fff4e3e1708 -[NSDistributedNotificationCenter postNotificationName:object:userInfo:options:] + 71
3   ZoomSDKVideoUI                      0x0000000101effba2 TermModule + 519938
4   ZoomSDKVideoUI                      0x0000000101ef75e3 TermModule + 485699
5   ZoomSDKVideoUI                      0x0000000101ef7325 TermModule + 484997
6   ZoomSDKVideoUI                      0x0000000101ef6ff7 TermModule + 484183
7   ZoomSDKVideoUI                      0x0000000101ef7e34 TermModule + 487828
8   AppKit                              0x00007fff49a1c644 -[NSApplication(NSResponder) sendAction:to:from:] + 312
9   AppKit                              0x00007fff49a86992 -[NSControl sendAction:to:] + 86
10  AppKit                              0x00007fff49a868c4 __26-[NSCell _sendActionFrom:]_block_invoke + 136
11  AppKit                              0x00007fff49a867c6 -[NSCell _sendActionFrom:] + 178
12  AppKit                              0x00007fff49ab354b -[NSButtonCell _sendActionFrom:] + 96
13  AppKit                              0x00007fff49a850e1 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2375
14  AppKit                              0x00007fff49ab329c -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 698
15  AppKit                              0x00007fff49a83b1e -[NSControl mouseDown:] + 791
16  AppKit                              0x00007fff4995f937 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 5724
17  AppKit                              0x00007fff498961a6 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2295
18  AppKit                              0x00007fff49895667 -[NSWindow(NSEventRouting) sendEvent:] + 478
19  AppKit                              0x00007fff49734e4b -[NSApplication(NSEvent) sendEvent:] + 331
20  AppKit                              0x00007fff497235c0 -[NSApplication run] + 755
21  OnemeetingDemo                      0x000000010001fea0 _T014OnemeetingDemoyycfU_ + 160
22  OnemeetingDemo                      0x000000010001fee6 _T0s5Error_pIgzo_ytsAA_pIgrzo_TR + 22
23  OnemeetingDemo                      0x000000010001ff8b _T0s5Error_pIgzo_ytsAA_pIgrzo_TRTA + 27
24  libswiftObjectiveC.dylib            0x00000001015c887a _T010ObjectiveC15autoreleasepoolxxyKc8invoking_tKlF + 58
25  OnemeetingDemo                      0x000000010001ee5e main + 126
26  libdyld.dylib                       0x00007fff780ae3d5 start + 1
27  ???                                 0x0000000000000003 0x0 + 3
2019-12-25 10:27:07.076855+0800 OnemeetingDemo[26348:546725] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x1a543, name = 'com.zoom.capturethread'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2019-12-25 10:27:07.688570+0800 OnemeetingDemo[26348:546737] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x1b427, name = 'com.zoom.capturethread'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2019-12-25 10:27:18.594776+0800 OnemeetingDemo[26348:545951] *** attempt to post distributed notification 'ZoomStartNewSendSharingAndStopOldOne' thwarted by sandboxing.

Date/Time:     Wed Dec 25 10:27:18 2019
OS Version:    18G103
Application:   OnemeetingDemo

Backtrace:
0   CoreFoundation                      0x00007fff4c28fe6d __CFGenerateReport + 197
1   CoreFoundation                      0x00007fff4c10765f _CFXNotificationPost + 1396
2   Foundation                          0x00007fff4e3e1708 -[NSDistributedNotificationCenter postNotificationName:object:userInfo:options:] + 71
3   ZoomSDKVideoUI                      0x0000000101effba2 TermModule + 519938
4   ZoomSDKVideoUI                      0x0000000101ef75e3 TermModule + 485699
5   ZoomSDKVideoUI                      0x0000000101ef7325 TermModule + 484997
6   ZoomSDKVideoUI                      0x0000000101ef6ff7 TermModule + 484183
7   ZoomSDKVideoUI                      0x0000000101ef7e34 TermModule + 487828
8   AppKit                              0x00007fff49a1c644 -[NSApplication(NSResponder) sendAction:to:from:] + 312
9   AppKit                              0x00007fff49a86992 -[NSControl sendAction:to:] + 86
10  AppKit                              0x00007fff49a868c4 __26-[NSCell _sendActionFrom:]_block_invoke + 136
11  AppKit                              0x00007fff49a867c6 -[NSCell _sendActionFrom:] + 178
12  AppKit                              0x00007fff49ab354b -[NSButtonCell _sendActionFrom:] + 96
13  AppKit                              0x00007fff49a850e1 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2375
14  AppKit                              0x00007fff49ab329c -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 698
15  AppKit                              0x00007fff49a83b1e -[NSControl mouseDown:] + 791
16  AppKit                              0x00007fff4995f937 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 5724
17  AppKit                              0x00007fff498961a6 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2295
18  AppKit                              0x00007fff49895667 -[NSWindow(NSEventRouting) sendEvent:] + 478
19  AppKit                              0x00007fff49734e4b -[NSApplication(NSEvent) sendEvent:] + 331
20  AppKit                              0x00007fff497235c0 -[NSApplication run] + 755
21  OnemeetingDemo                      0x000000010001fea0 _T014OnemeetingDemoyycfU_ + 160
22  OnemeetingDemo                      0x000000010001fee6 _T0s5Error_pIgzo_ytsAA_pIgrzo_TR + 22
23  OnemeetingDemo                      0x000000010001ff8b _T0s5Error_pIgzo_ytsAA_pIgrzo_TRTA + 27
24  libswiftObjectiveC.dylib            0x00000001015c887a _T010ObjectiveC15autoreleasepoolxxyKc8invoking_tKlF + 58
25  OnemeetingDemo                      0x000000010001ee5e main + 126
26  libdyld.dylib                       0x00007fff780ae3d5 start + 1
27  ???                                 0x0000000000000003 0x0 + 3
2019-12-25 10:27:18.595997+0800 OnemeetingDemo[26348:546874] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x1a70f, name = 'com.zoom.capturethread'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2019-12-25 10:27:19.151504+0800 OnemeetingDemo[26348:546884] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x2a70b, name = 'com.zoom.capturethread'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2019-12-25 10:27:25.122895+0800 OnemeetingDemo[26348:545951] *** attempt to post distributed notification 'ZoomStartNewSendSharingAndStopOldOne' thwarted by sandboxing.

Date/Time:     Wed Dec 25 10:27:25 2019
OS Version:    18G103
Application:   OnemeetingDemo

Backtrace:
0   CoreFoundation                      0x00007fff4c28fe6d __CFGenerateReport + 197
1   CoreFoundation                      0x00007fff4c10765f _CFXNotificationPost + 1396
2   Foundation                          0x00007fff4e3e1708 -[NSDistributedNotificationCenter postNotificationName:object:userInfo:options:] + 71
3   ZoomSDKVideoUI                      0x0000000101effba2 TermModule + 519938
4   ZoomSDKVideoUI                      0x0000000101ef75e3 TermModule + 485699
5   ZoomSDKVideoUI                      0x0000000101ef7325 TermModule + 484997
6   ZoomSDKVideoUI                      0x0000000101ef6ff7 TermModule + 484183
7   ZoomSDKVideoUI                      0x0000000101ef7e34 TermModule + 487828
8   AppKit                              0x00007fff49a1c644 -[NSApplication(NSResponder) sendAction:to:from:] + 312
9   AppKit                              0x00007fff49a86992 -[NSControl sendAction:to:] + 86
10  AppKit                              0x00007fff49a868c4 __26-[NSCell _sendActionFrom:]_block_invoke + 136
11  AppKit                              0x00007fff49a867c6 -[NSCell _sendActionFrom:] + 178
12  AppKit                              0x00007fff49ab354b -[NSButtonCell _sendActionFrom:] + 96
13  AppKit                              0x00007fff49a850e1 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2375
14  AppKit                              0x00007fff49ab329c -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 698
15  AppKit                              0x00007fff49a83b1e -[NSControl mouseDown:] + 791
16  AppKit                              0x00007fff4995f937 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 5724
17  AppKit                              0x00007fff498961a6 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2295
18  AppKit                              0x00007fff49895667 -[NSWindow(NSEventRouting) sendEvent:] + 478
19  AppKit                              0x00007fff49734e4b -[NSApplication(NSEvent) sendEvent:] + 331
20  AppKit                              0x00007fff497235c0 -[NSApplication run] + 755
21  OnemeetingDemo                      0x000000010001fea0 _T014OnemeetingDemoyycfU_ + 160
22  OnemeetingDemo                      0x000000010001fee6 _T0s5Error_pIgzo_ytsAA_pIgrzo_TR + 22
23  OnemeetingDemo                      0x000000010001ff8b _T0s5Error_pIgzo_ytsAA_pIgrzo_TRTA + 27
24  libswiftObjectiveC.dylib            0x00000001015c887a _T010ObjectiveC15autoreleasepoolxxyKc8invoking_tKlF + 58
25  OnemeetingDemo                      0x000000010001ee5e main + 126
26  libdyld.dylib                       0x00007fff780ae3d5 start + 1
27  ???                                 0x0000000000000003 0x0 + 3
2019-12-25 10:27:25.124158+0800 OnemeetingDemo[26348:546897] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x1a71b, name = 'com.zoom.capturethread'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2019-12-25 10:27:25.663462+0800 OnemeetingDemo[26348:546978] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x1a71f, name = 'com.zoom.capturethread'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2019-12-25 10:27:48.195249+0800 OnemeetingDemo[26348:547159] TIC Read Status [1:0x600003710fc0]: 1:57
2019-12-25 10:27:48.195281+0800 OnemeetingDemo[26348:547159] TIC Read Status [1:0x600003710fc0]: 1:57
2019-12-25 10:27:48.195834+0800 OnemeetingDemo[26348:547159] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C1.1:2][0x10262f2e0] get output frames failed, state 8196
2019-12-25 10:27:48.195917+0800 OnemeetingDemo[26348:547159] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C1.1:2][0x10262f2e0] get output frames failed, state 8196
2019-12-25 10:27:48.196231+0800 OnemeetingDemo[26348:547159] TIC Read Status [1:0x0]: 1:57
2019-12-25 10:27:48.196250+0800 OnemeetingDemo[26348:547159] TIC Read Status [1:0x0]: 1:57
2019-12-25 10:27:48.196263+0800 OnemeetingDemo[26348:547159] TIC Read Status [1:0x0]: 1:57
ZoomSDKMeetingStatus_Disconnecting
2019-12-25 10:27:53.912518+0800 OnemeetingDemo[26348:545951] dynamic_cast error 2: One or more of the following type_info's  has hidden visibility.  They should all have public visibility.   N3Cmm22ICmmMessageQueueClientE, 21CSBConfUIModuleClient, N3Cmm13ISBUIProviderE.
ZoomSDKMeetingStatus_Ended


This didn’t work, and still the error. I guess it has something to do with the certificate? I need help.

I need help.,This didn’t work.

Every time I click on the share button, the workbench? Feedback this question
2019-12-25 10:27:19.151504+0800 OnemeetingDemo[26348:546884] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x2a70b, name = 'com.zoom.capturethread'

All the engineering logs I sent up, I need help, thank you

Hi
Please close your project “App Sandbox”,it is not need to open.
target -> Capabilities -> App Sandbox

It turned out that after I removed all capabilities configuration, I can start sharing, thank you very much :japanese_goblin::japanese_goblin::japanese_goblin:

1 Like

Happy to hear it is working now!

Thanks Bella!

-Tommy

你好 是中国开发者么 我在集成的时候遇到了问题 方便联下联系方式请教一下么

您好,

请问您在集成的时候遇到了什么问题呢?您可以在此论坛发帖子,我们会帮助您解决问题

谢谢