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/)
它正常工作,我正确地接收消息
你知道这是个问题还是我需要配置一些东西吗