I'm trying to implement jwplayer in ios app but using a very simple startup it is continuously throwing signal abort error
#interface ViewController () <JWPlayerDelegate>
#property JWPlayerController *player;
#end
#implementation ViewController
- (void)viewDidLoad
{
[super viewDidLoad];
[self createPlayer];
}
- (void)createPlayer
{
JWConfig *config = [JWConfig configWithContentURL:#"http://content.bitsontherun.com/videos/3XnJSIm4-injeKYZS.mp4"];
config.autostart = YES;
self.player = [[JWPlayerController alloc] initWithConfig:config];
config.size = CGSizeMake(100, 100);
_player.view.frame = CGRectMake(0, 0, 100, 100);
[self.view addSubview:self.view];
}
#end
Error:
jwplayercheck[4111:850586] -[JWConfig xmlPlayList]: unrecognized selector sent to instance 0x1701256e0
2016-12-21 15:14:31.827747 jwplayercheck[4111:850586] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[JWConfig xmlPlayList]: unrecognized selector sent to instance 0x1701256e0'
* First throw call stack:
(0x1820321c0 0x180a6c55c 0x182039278 0x182036278 0x181f3059c 0x1000e38bc 0x1000be750 0x1000b4f68 0x1000b4a00 0x1000d9770 0x1000d97e0 0x1000ab850 0x1000ab7c4 0x187e860b0 0x187e85c78 0x187e8c424 0x187e898c4 0x187efc0e8 0x188108a78 0x18810e5c8 0x188122e60 0x18810b5ac 0x183bd98bc 0x183bd9728 0x183bd9ad0 0x181fe0278 0x181fdfbc0 0x181fdd7c0 0x181f0c048 0x187ef12b0 0x187eec034 0x1000ac414 0x180ef05b8)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
[Change Other Linker Flags on Build Setting to "-all_load"]
Related
2015-02-03 22:44:17.468 descuentos[1430:55158] -[UIButton value]: unrecognized selector sent to instance 0x7fde78d95440
2015-02-03 22:44:17.472 descuentos[1430:55158] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIButton value]: unrecognized selector sent to instance 0x7fde78d95440'
*** First throw call stack:
How can I fix this error? I think this is a thread error.
Here is my code:
- (IBAction)TipsSlider:(id)sender {
UISlider *slider = sender;
float valorFloat = slider.value;
int valInt = (int)valorFloat;
_dataSlider.text = [[NSString alloc]initWithFormat:#"%d", valInt];
}
- (IBAction)calcular:(id)sender {
UISlider *slider = sender;
float valorFloat = slider.value;
int valInt = (int)valorFloat;
_dataSlider.text = [[NSString alloc]initWithFormat:#"%d", valInt];
float valorIn= [[entrada text] floatValue];
float resultado = (valorFloat / 100) * valorIn;
NSString *resultadoFinal = [[NSString alloc]initWithFormat:#"%4.2f",resultado];
_salidaResultado.text = resultadoFinal;
}
It looks like you have connected an IBAction from a UIButton when you intended to use a UISlider.
You then assign the sender of the action (which is a button) to a slider and try to access its "value", only that UIButton instances do not respond to a "value" message and that's why you get the crash.
So, make sure you are "ctrl+dragging" from a slider in IB.
I am receiving an "EXEC_BAD_ACCESS" error when I attempt to
instantiate [anImage] in iOS8.
The same code works fine in iOS 7.1 and below.
Any suggestions are greatly appreciated.
//In .h file:
UIImage *img;
//in .m file:
img = [UIImage imageNamed:#"image.png"];
UIImageView *anImage = [[UIImageView alloc] initWithImage:img];
/*
* Here is the stack Trace:
*/
-[__NSCFDictionary _isDecompressing]: unrecognized selector sent to instance 0x16e49740
2014-10-07 08:56:35.319 [AppName] [222:7088] *** Terminating app due to uncaught exception
'NSInvalidArgumentException', reason: '-[__NSCFDictionary _isDecompressing]: unrecognized
selector sent to instance 0x16e49740'
*** First throw call stack:
(0x27e50e3f 0x35528c8b 0x27e56189 0x27e540a7 0x27d86208 0x2b2faf55 0x1011bb 0x103d27
0xfe759 0x1029d7 0x10060d 0x2b31fd4b 0x2b31fcf1 0x2b30a96b 0x2b32827f 0x2b2e45cd
0x27e175cd 0x27e14c8b 0x27e15093 0x27d63621 0x27d63433 0x2f0d20a9 0x2b34e359 0xe9b05
0x35aa8aaf)
libc++abi.dylib: terminating with uncaught exception of type NSException
I want to design a level select scene in my game. What I want is a very abstract design which consists of a single UIPickerView that has the width of the screen and about 200 px in height.
The following is from LevelSelect.m , which is a subclass of SKScene
-(id)initWithSize:(CGSize)size{
if (self = [super initWithSize:size]) {
/* Setup your scene here */
self.backgroundColor = [SKColor whiteColor];
for (int i = 0; i < 10; i++) {
NSString* levelString = [NSString stringWithFormat:#"Level %i",i];
[levelData setObject:levelString atIndexedSubscript:i];
}
UIPickerView *levelPickerView = [[UIPickerView alloc] initWithFrame:CGRectMake(self.scene.size.width/2, self.scene.size.height/2, self.scene.size.width, 200)];
levelPickerView.dataSource = self;
levelPickerView.delegate = self;
levelPickerView.showsSelectionIndicator = YES;
[self addChild:levelPickerView];
}
return self;
}
I implemented the UIPickerView data source and delegate methods. But when i load the scene i get the following error .
2014-07-23 22:32:41.222 Poppolo[13686:60b] -[UIPickerView setPaused:]: unrecognized selector sent to instance 0x17d90470
2014-07-23 22:32:41.225 Poppolo[13686:60b] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIPickerView setPaused:]: unrecognized selector sent to instance 0x17d90470'
* First throw call stack:
(0x2dd30f0b 0x384c7ce7 0x2dd34837 0x2dd33137 0x2dc82098 0x304618cb 0xe1f3d 0xe70fb 0x389b0d53 0x389b0d3f 0x389b36c3 0x2dcfb681 0x2dcf9f4d 0x2dc64769 0x2dc6454b 0x32bd16d3 0x305c3891 0xee221 0x389c5ab7)
libc++abi.dylib: terminating with uncaught exception of type NSException
thanks in advance.
I'm experiencing a weird crash using FBLoginView.
Scenario for crash: My view with a FBLoginView instance loads and I don't login, I go back to my previous view and load my view with the FBLoginView instance again, this causes the app to crash and I can't see what I'm doing wrong.
It's working fine if I login and repeat the same thing.
Crash log:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSCFConstantString stringByAppendingString:]: nil argument'
I found this: Very weird NSInvalidArgumentException with addSubview FBLoginView - which kind of describes the same problem, but I don't use FBLoginView in multiple views.
Code:
- (void)viewDidLoad
{
[super viewDidLoad];
if (!self.loginView) {
self.loginView = [FBLoginView new];
self.loginView.readPermissions = #[#"public_profile", #"email", #"user_friends"];
self.loginView.delegate = self;
[self.view addSubview:self.loginView];
}
}
Any suggestions?
Im subclassing CCMenuItemImage with this init method
-(id)initWithChildren:(id)targetedApplication {
if(self = [super initFromNormalImage:#"Answer_Box.png" selectedImage:#"Answer_Box.png" disabledImage:#"Answer_Box.png" target:targetedApplication selector:#selector(answerButtonTapped:)] ) {
NSLog(#"Yes?");
return self;
}
return self;
}
-(void)answerButtonTapped:(id)stuff {
NSLog(#"Answer Button Tapped");
}
and it crashes every time with this error in the console
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSInvocation invocationWithMethodSignature:]: method signature argument cannot be nil'
Thanks in advance for any help.
is -answerButtonTapped a method of targetedApplication? It should be that one. The error says that there is no such a function in target. Or you can pass "self" instead of "targetApplication"