Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ endif()

set_target_properties(ZXing PROPERTIES PUBLIC_HEADER "${PUBLIC_HEADERS}")

if (APPLE)
if (APPLE AND BUILD_APPLE_FRAMEWORK)
set_target_properties(ZXing PROPERTIES
FRAMEWORK TRUE
FRAMEWORK_VERSION "C"
Expand All @@ -475,7 +475,7 @@ if (APPLE)
#MACOSX_FRAMEWORK_INFO_PLIST Info.plist
PUBLIC_HEADER "${PUBLIC_HEADERS}"
XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "iPhone Developer"
XCODE_ATTRIBUTE_ENABLE_BITCODE "YES"
XCODE_ATTRIBUTE_ENABLE_BITCODE "NO"
)
endif()

Expand Down
3 changes: 2 additions & 1 deletion wrappers/ios/build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ cmake -S../../ -B_builds -GXcode \
-DCMAKE_XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH=NO \
-DBUILD_UNIT_TESTS=NO \
-DBUILD_BLACKBOX_TESTS=NO \
-DBUILD_EXAMPLES=NO
-DBUILD_EXAMPLES=NO \
-DBUILD_APPLE_FRAMEWORK=YES

echo ========= Build the sdk for simulators
xcodebuild -project _builds/ZXing.xcodeproj build \
Expand Down