diff --git a/spine-cocos2dx/example/CMakeLists.txt b/spine-cocos2dx/example/CMakeLists.txt index 908c1d69b..be3dc54f4 100644 --- a/spine-cocos2dx/example/CMakeLists.txt +++ b/spine-cocos2dx/example/CMakeLists.txt @@ -128,6 +128,11 @@ endif() # Link the spine-cpp and spine-cocos2dx library to the app target_link_libraries(${APP_NAME} spine-cpp spine-cocos2dx) +# Manually link to libz on iOS, the cocos2d-x build only pulls in libz.tbd +if(IOS) + target_link_libraries(${APP_NAME} z) +endif() + target_link_libraries(${APP_NAME} cocos2d) target_include_directories(${APP_NAME} PRIVATE ${GAME_INCLUDE} @@ -140,9 +145,9 @@ if(APPLE) set_target_properties(${APP_NAME} PROPERTIES RESOURCE "${APP_UI_RES}") if(MACOSX) - set_target_properties(${APP_NAME} PROPERTIES MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/proj.ios_mac/mac/Info.plist") + set_xcode_property(${APP_NAME} INFOPLIST_FILE "${CMAKE_CURRENT_SOURCE_DIR}/proj.ios_mac/mac/Info.plist") elseif(IOS) - set_target_properties(${APP_NAME} PROPERTIES MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/proj.ios_mac/ios/Info.plist") + set_xcode_property(${APP_NAME} INFOPLIST_FILE "${CMAKE_CURRENT_SOURCE_DIR}/proj.ios_mac/ios/Info.plist") set_xcode_property(${APP_NAME} ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon") endif() diff --git a/spine-cocos2dx/example/proj.ios_mac/mac/Info.plist b/spine-cocos2dx/example/proj.ios_mac/mac/Info.plist index 6c696840e..a9b184cc1 100644 --- a/spine-cocos2dx/example/proj.ios_mac/mac/Info.plist +++ b/spine-cocos2dx/example/proj.ios_mac/mac/Info.plist @@ -2,35 +2,44 @@ - CFBundleDevelopmentRegion - en - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIconFile - Icon - CFBundleIdentifier - com.esotericsoftware.spine - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - LSApplicationCategoryType - public.app-category.games - LSMinimumSystemVersion - ${MACOSX_DEPLOYMENT_TARGET} - NSHumanReadableCopyright - Copyright © 2013. All rights reserved. - NSMainNibFile - MainMenu - NSPrincipalClass - NSApplication + CFBundleDevelopmentRegion + English + CFBundleDisplayName + ${PROJECT_NAME} + CFBundleExecutable + ${MACOSX_BUNDLE_EXECUTABLE_NAME} + CFBundleIconFile + Icon-57.png + CFBundleIdentifier + com.esotericsoftware.spine + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PROJECT_NAME} + CFBundleShortVersionString + 1.0 + CFBundlePackageType + APPL + CFBundleSignature + ???? + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UIAppFonts + + UILaunchStoryboardName + LaunchScreen + UIPrerenderedIcon + + UIStatusBarHidden + + UISupportedInterfaceOrientations + + UIInterfaceOrientationLandscapeRight + UIInterfaceOrientationLandscapeLeft + + NSHumanReadableCopyright + Copyright © 2019. All rights reserved.