Skip to content

Commit 7384897

Browse files
authored
RDART-1031: Disable codesign for apple binaries (#1694)
* Disable codesign for apple binaries * Set signing_allowed = no in cmakelists instead * Move comment to the right place
1 parent e8c818e commit 7384897

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
* None
55

66
### Fixed
7-
* None
7+
* Fixed an issue that would cause macOS apps to be rejected with `Invalid Code Signing Entitlements` error. (Issue [#1679](https://github.com/realm/realm-dart/issues/1679))
88

99
### Compatibility
1010
* Realm Studio: 15.0.0 or later.
1111

1212
### Internal
13-
* Using Core x.y.z.
13+
* Using Core 14.7.0.
14+
* Disabled codesigning of Apple binaries. (Issue [#1679](https://github.com/realm/realm-dart/issues/1679))
1415

1516
## 2.3.0 (2024-05-23)
1617

packages/realm_dart/CMakeLists.txt

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ if("$ENV{REALM_USE_CCACHE}" STREQUAL "TRUE")
1414
include(src/realm.build.use.ccache.cmake)
1515
endif()
1616

17-
message ("Realm Dart")
18-
message ("CMAKE_BINARY_DIR is ${CMAKE_BINARY_DIR}")
19-
message ("PROJECT_SOURCE_DIR is ${PROJECT_SOURCE_DIR}")
17+
message("Realm Dart")
18+
message("CMAKE_BINARY_DIR is ${CMAKE_BINARY_DIR}")
19+
message("PROJECT_SOURCE_DIR is ${PROJECT_SOURCE_DIR}")
2020

2121
set(CMAKE_CXX_STANDARD 17)
2222
set(CMAKE_CXX_STANDARD_REQUIRED on)
@@ -36,6 +36,13 @@ if(CMAKE_SYSTEM_NAME MATCHES "^Windows")
3636
)
3737
endif()
3838

39+
if(APPLE)
40+
# TODO: allow code signing once we setup certificates on CI.
41+
# Otherwise, Xcode 15 will use an empty identifier, which will then be rejected when the app is submitted to the app store.
42+
# See https://github.com/realm/realm-dart/issues/1679 for more details.
43+
set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_ALLOWED NO)
44+
endif()
45+
3946
set(_SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING=1)
4047

4148
add_subdirectory(src)

0 commit comments

Comments
 (0)