'__strong' only applies to objective-c object or block pointer types; type here is 'void *'
これは、AVAudioPlayer.hファイル(インポートされたフレームワーク)の「__strong」行です。
@interface AVAudioPlayer : NSObject {
@private
__strong void *_impl;
}
私の.hファイルは次のようになります
#import <UIKit/UIKit.h>
#import <AVFoundation/AVAudioPlayer.h>
@interface excerViewController : UIViewController <AVAudioPlayerDelegate,UIAccelerometerDelegate>
@property (weak, nonatomic) IBOutlet UILabel *avgLabel;
@property (weak, nonatomic) IBOutlet UILabel *modeLabel;
@property (weak, nonatomic) IBOutlet UILabel *scoreLabel;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
@property (weak, nonatomic) IBOutlet UIButton *playButton;
@property int subScore;
@property int score;
@property int seconds;
@property int moments;
@property NSMutableString *average;
@property double avg;
@property BOOL locked;
@property double delta;
@property UIAccelerometer *accel;
@property AVAudioPlayer *player;
-(void)drawEnergy:(double)energy;
@end
なぜこのエラーが発生するのか、一生理解できません。StackOverflowの他の1人がこの問題を抱えていましたが、それが原因ではありません('__strong'はobjective-cオブジェクトまたはブロックポインタータイプにのみ適用されます。ここに入力するとXXX"警告)