xcode 升级到 10.1 ( AVAudioSession 异常)

开发环境
macOS Mojave 10.14.3
xcode 10.1
cocos2dx - 3.17

日志信息:
objc[654]: Class AVAudioSession is implemented in both /System/Library/Frameworks/AVFoundation.framework/Versions/A/Frameworks/AVFAudio.framework/Versions/A/AVFAudio (0x7fff8432d988) and /Users/0280106pc0216/work/project/Project/svn/Project/trunk/client/Project/runtime/mac/Project-desktop.app/Contents/MacOS/Project-desktop (0x102443238). One of the two will be used. Which one is undefined.

ios12.1库 --> AVAudioSession.h
@interface AVAudioSession : NSObject {
@private
void *_impl;
}

cocos2dx --> CDXMacOSXSupport.h
@interface AVAudioSession : NSObject {

// properties
NSString* category;
double preferredHardwareSampleRate;
NSTimeInterval preferredIOBufferDuration;

BOOL inputIsAvailable;
double currentHardwareSampleRate;
NSInteger currentHardwareInputNumberOfChannels;
NSInteger currentHardwareOutputNumberOfChannels;
id<AVAudioSessionDelegate> delegate;

@private
__strong void *_impl;
}

@minggo

1赞

奇怪,我 macOS 10.14.1 没有问题。