finding unsupported apis with os version

前端 未结 3 1755
你的背包
你的背包 2020-12-18 10:21

I\'ve developed and application for iPhone. It works fine on os4 but it does not work on os3.1. In fact works but there are some problems; after splash screen a what screen

3条回答
  •  悲&欢浪女
    2020-12-18 10:41

    Set your project's Base SDK to iphone-os-3-1, then build. All the error messages about classes, methods, and functions that don't exist must designate things added since iphone-os-3-1, since your project built and linked fine against the iphone-os-4-0 SDK.

    If you don't have the iphone-os-3-1 SDK, try this instead:

    • Open your project's Build Settings.
    • Find the "Preprocessor Macros" setting.
    • Edit it and add __IPHONE_OS_VERSION_MAX_ALLOWED=30100

    Now, try building. This should cause everything introduced after iOS 3.1 to be labeled unavailable, producing the same errors as if you had switched to the iphone-os-3-1 SDK.

提交回复
热议问题