Browse Source

fix iOS framework building issue in CMakeLists.txt

Use CMake generated Info.plist instead of pre-defined one, to fix app install error caused by missing CFBundleExecutable field.

Align version strings with MNN_VERSION
juju812 1 month ago
parent
commit
df765eba0c
1 changed files with 2 additions and 3 deletions
  1. 2 3
      CMakeLists.txt

+ 2 - 3
CMakeLists.txt

@@ -833,11 +833,10 @@ if(APPLE)
       set_target_properties(MNN PROPERTIES FRAMEWORK TRUE)
       set_target_properties(MNN PROPERTIES
           MACOSX_FRAMEWORK_IDENTIFIER com.alibaba.MNN
-          MACOSX_FRAMEWORK_SHORT_VERSION_STRING ${PACKAGE_VERSION}
-          MACOSX_FRAMEWORK_BUNDLE_VERSION ${PACKAGE_VERSION}
+          MACOSX_FRAMEWORK_SHORT_VERSION_STRING ${MNN_VERSION}
+          MACOSX_FRAMEWORK_BUNDLE_VERSION ${MNN_VERSION}
           XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "iPhone Developer"
       )
-      set_target_properties(MNN PROPERTIES MACOSX_FRAMEWORK_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/project/ios/MNN/Info.plist)
     ENDIF()
     IF(MNN_METAL)
       find_library(FOUNDATION Foundation REQUIRED)