Open matusfedorko opened 1 year ago
Thanks for your reply. Unfortunately cmake --build ../sdl2_build/iOS
behaves the same, same error. Using CODE_SIGNING_ALLOWED=NO
with xcodebuild
worked. Although I still wonder why there is this difference between building through Xcode and building through xcodebuild ? Anyways I ended up with a different solution still, I only build static library. I don't need shared library and the error happens only when building SDL as a shared library.
Does the configuration type matter? Does it also happen with Debug (-DCMAKE_BUILD_TYPE=Debug
)?
Have you tried configuring with -DCMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM=matusfedork
yet?
Sorry for the slow reply. I tried -DCMAKE_BUILD_TYPE=Debug
, but that makes no difference as it should. -GXCode
is a multiconfig generator, so the it does not matter what is on the command line during configure step.
Supplying development team still errored out, but with a different error this time :
error: No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "matusfedorko" with a private key was found. (in target 'SDL2' from project 'SDL2')
I am sure I used a valid singing certificate and TeamID as I use it on other projects that compile successfully.
I guessed matusfedork
for the development team name, perhaps another name fits better?
Does cmake --build ../sdl2_build/ios --config Release
and cmake --build ../sdl2_build/ios --config Debug
give the same result?
Yes, I understood. Building both release/debug has the same outcome.
Hi,
I am trying to build SDL 2 for iOS using cmake. First I cloned out the latest commit from the SDL2 branch and then I ran the following to configure build:
And the following to build:
Which produced the following output:
Notice the error:
error: Signing for "SDL2" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'SDL2' from project 'SDL2')
What a I doing wrong ?
When I open the project in Xcode and build from Xcode, then the build succeeds. Why is it not working with
xcodebuild
?