Skip to content

Conversation

@skribka04
Copy link

In the Makefile, all targets (including simulators) are predefined, and the existing ifeq construct was appending an extra "-simulator" suffix to already simulator targets. As a result, identifiers like "iphoneos-simulator-simulator" were generated and the build failed.

In the Makefile, all targets (including simulators) are predefined, and the existing ifeq
construct was appending an extra "-simulator" suffix to already simulator targets. As a result,
identifiers like "iphoneos-simulator-simulator" were generated and the build failed.
@tdlib tdlib deleted a comment from ICEDEVILS Jul 13, 2025
@tdlib tdlib deleted a comment from urielsegura03 Jul 20, 2025
@Kylmakalle
Copy link
Contributor

My context before I saw there's an open PR that targets this issue

Turns out TDLib's patch had an issue with duplicated -simulator suffix that was ignored by clang of Xcode 16.0, but causes an issue with 16.4

xcrun --sdk iphonesimulator clang -target x86_64-apple-ios-simulator-simulator -mios-simulator-version-min=12.0

clang: error: version '-simulator' in target triple 'arm64-apple-ios-simulator-simulator' is invalid

When running make vars-iOS-simulator, I was able to spot an exact issue with TARGET_TRIPLE

@@ -4,10 +4,10 @@ iOS-simulator
 >>> Environment variables for iphonesimulator.x86_64
 SDK-iphonesimulator.x86_64: iphonesimulator
 ARCH-iphonesimulator.x86_64: x86_64
-TARGET_TRIPLE-iphonesimulator.x86_64: x86_64-apple-ios-simulator-simulator
+TARGET_TRIPLE-iphonesimulator.x86_64: x86_64-apple-ios-simulator
 SDK_ROOT-iphonesimulator.x86_64: /Applications/Xcode-16.0.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.0.sdk
-CC-iphonesimulator.x86_64: xcrun --sdk iphonesimulator clang -target x86_64-apple-ios-simulator-simulator
-CPP-iphonesimulator.x86_64: xcrun --sdk iphonesimulator clang -target x86_64-apple-ios-simulator-simulator -E
+CC-iphonesimulator.x86_64: xcrun --sdk iphonesimulator clang -target x86_64-apple-ios-simulator
+CPP-iphonesimulator.x86_64: xcrun --sdk iphonesimulator clang -target x86_64-apple-ios-simulator -E
 CFLAGS-iphonesimulator.x86_64: -mios-simulator-version-min=12.0
 LDFLAGS-iphonesimulator.x86_64: -mios-simulator-version-min=12.0
 BZIP2_SRCDIR-iphonesimulator.x86_64: build/iOS-simulator/iphonesimulator.x86_64/bzip2-1.0.8
@@ -37,10 +37,10 @@ PYTHON_LIB-iphonesimulator.x86_64: td/example/ios/Py
 >>> Environment variables for iphonesimulator.arm64
 SDK-iphonesimulator.arm64: iphonesimulator
 ARCH-iphonesimulator.arm64: arm64
-TARGET_TRIPLE-iphonesimulator.arm64: arm64-apple-ios-simulator-simulator
+TARGET_TRIPLE-iphonesimulator.arm64: arm64-apple-ios-simulator
 SDK_ROOT-iphonesimulator.arm64: /Applications/Xcode-16.0.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.0.sdk
-CC-iphonesimulator.arm64: xcrun --sdk iphonesimulator clang -target arm64-apple-ios-simulator-simulator
-CPP-iphonesimulator.arm64: xcrun --sdk iphonesimulator clang -target arm64-apple-ios-simulator-simulator -E
+CC-iphonesimulator.arm64: xcrun --sdk iphonesimulator clang -target arm64-apple-ios-simulator
+CPP-iphonesimulator.arm64: xcrun --sdk iphonesimulator clang -target arm64-apple-ios-simulator -E
 CFLAGS-iphonesimulator.arm64: -mios-simulator-version-min=12.0
 LDFLAGS-iphonesimulator.arm64: -mios-simulator-version-min=12.0
 BZIP2_SRCDIR-iphonesimulator.arm64: build/iOS-simulator/iphonesimulator.arm64/bzip2-1.0.8

@skribka04 skribka04 requested a review from Kylmakalle August 29, 2025 08:27
Copy link
Contributor

@Kylmakalle Kylmakalle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@skribka04 I'm not sure why you've dismissed my review. Do you plan to push the changes or should I reopen my own PR #3427?

@Kylmakalle
Copy link
Contributor

Re-opened my PR #3427 that solves visionOS build issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants