Why does the iPad2 simulator work, but the iPad Retina and iPad Air don't work?

Asked 2 years ago, Updated 2 years ago, 68 views

I'm a beginner in iOS development, but I'm trying to develop universal apps that work with iPhone and iPad without using storyboard.If you select iPhone and iPad2 in the simulator and start it, it will start without any problems, but if you select iPad retina and iPad Air, you will get an error when starting it.

What is the possible cause of the error from this information?
Personally, I feel that I made a careless mistake related to the setting...
Please let me know if there are people who have similar symptoms and have been able to solve this problem.

·Error points

int main(intargc, char*argv[]){
    @autoreleasepool{
        return UIAapplicationMain (argc, argv, nil, NSSstringFromClass ([AppDelegate class]))); stop here (Thread 1: called signal SIGABRT)
    }
}

·Logs that appeared in output

>(loaded)'
*** First throw call stack:
(
    0 CoreFoundation 0x000000010 cedc3f5__exceptionPreprocess+165
    1 libobjc.A.dylib0x000000010cb75bb7objc_exception_throw+45
    2UIKit0x000000010da56cf0 - [UIStoryboard name] +0
    3UIKit0x000000010d50aca9 - [UIApplication_loadMainStoryboardFileNamed: bundle:] +40
    4UIKit0x000000010d509d49 - [UIApplication_runWithMainScene:transitionContext:completion:] +1075
    5UIKit0x000000010d508d22 - [UIApplication workspaceDidEndTransaction:] +179
    6 FrontBoardServices 0x0000000110a362a3_31 - [FBSSerialQueue performAsync:]_block_invoke+16
    7 CoreFoundation 0x000000010ce11abc_CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK_+12
    8 CoreFoundation 0x000000010ce07805_CFRunLoopDoBlocks+341
    9 CoreFoundation 0x000000010ce075c5_CFRunLoopRun+2389
    10 CoreFoundation 0x000000010ce06a06CFRunLoopRunSpecific+470
    11 UIKit 0x000000010d508799 - [UIApplication_run] +413
    12UIKit 0x000000010d50b550UIAapplicationMain+1282
    13 Add or Sub 0x000000010c645703 main+115
    14 libdyld.dylib 0x000000010f71a145 start+1
)
libc++abi.dylib:terminating with uncaught exception of type NSException

xcode ios

2022-09-30 20:26

3 Answers

Xcode6 removed armv7s from Standard Architectures and
If you want to run on iPad Air, you will need to manually add settings to Build Settings ->Architectures.

https://stackoverflow.com/questions/24040497/xcode-6-standard-architectures-exclude-armv7s


2022-09-30 20:26

I don't know the details, but I think the architecture configuration during the build was also a mistake. The XCode build configuration item has an entry called Valid Architectures. Perhaps armv7 is set.

For iPhone 5 and later models, a Apple A6 CPU or later is used.This corresponds to an architecture called armv7s, so I think this may be the cause, but I'm not sure.


2022-09-30 20:26

I found a solution, so I'll write it here

I built it after setting it to iPad only instead of universal, and then I put it back to universal setting and built it, and it started working.I don't know the cause, but now it works.

Based on what @KeiMinagawa wrote in the questionnaire, this post was posted as a separate response on the community wiki.


2022-09-30 20:26

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.