Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/84.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c mmWormHole库和appGroupContainerPath变量始终返回nil_Objective C_Mmwormhole - Fatal编程技术网

Objective c mmWormHole库和appGroupContainerPath变量始终返回nil

Objective c mmWormHole库和appGroupContainerPath变量始终返回nil,objective-c,mmwormhole,Objective C,Mmwormhole,我正在测试库,但我遇到了messagePassingDirectoryPath问题。 当我生成一条消息时,它工作正常,但当我在听时,我遇到了以下问题: 我使用listenForMessageWithIdentifier函数侦听消息,并在库流中到达messagePassingDirectoryPath函数行时: NSURL *appGroupContainer = [self.fileManager containerURLForSecurityApplicationGroupIdentifier

我正在测试库,但我遇到了
messagePassingDirectoryPath
问题。 当我生成一条消息时,它工作正常,但当我在听时,我遇到了以下问题:

我使用
listenForMessageWithIdentifier
函数侦听消息,并在库流中到达
messagePassingDirectoryPath
函数行时:

NSURL *appGroupContainer = [self.fileManager containerURLForSecurityApplicationGroupIdentifier:self.applicationGroupIdentifier]; 
它总是返回一个空值

self.applicationGroupIdentifier
变量与my group具有正确的值

如果我设置了
NSString*directoryPath=appGroupContainerPath到一个字符串,带有我的实际路径,类似于
(@/Users/gero/Library/Developer/CoreSimulator/Devices/FA4C68DD-4F63-42B3-89A5-6C611A298199/data/Containers/Shared/AppGroup/B049FE4D-EE9F-44E3-AE2A-897c0544471/wormhole/)
它正常工作,我正确地接收消息

你知道这是个问题还是我需要配置一些东西吗