App works fine with developer build with xcode. But crashes when run using ipa file

佐手、 提交于 2019-12-24 06:01:05

问题


My app works fine in device from xcode. But crashes when run using ipa file. When I checked the console using organizer, the following error has been displayed

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UINibDecoder setScrollEnabled:]: unrecognized selector sent to instance

I have used UIPageViewController that displays data in UITextView. Data has been added dynamically using NSOperation to the array , which has been used to display in UITextView.

The error-prone line of code is in DataViewController of the UIPageViewController. Here is the code

    textView=[[UITextView alloc]initWithFrame:CGRectMake(0, 0, 290, 500)];
    parentView.backgroundColor=[UIColor whiteColor];
    [textView setAttributedText:textViewAttributedString];
    [textView setScrollEnabled:NO];
    [textView setBounces:NO];
    textView.translatesAutoresizingMaskIntoConstraints=NO;
    textView.editable=NO;
    textView.selectable=YES;
    textView.delegate=self;
    textView.tag=currentTextViewTag;

来源:https://stackoverflow.com/questions/24359129/app-works-fine-with-developer-build-with-xcode-but-crashes-when-run-using-ipa-f

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!