已关闭
[Bug]: ios minimal deployment version not used by linker #541
Aleksey Mikhailov创建于 1月26日关闭于 8月25日
1月26日 添加了label:bug
Aleksey Mikhailov
4月21日 评论:
4月21日 评论:
6月3日 关联了pull request:fix: 修复 iOS 链接器未使用 target 最低部署版本的问题
8月14日 关联了pull request:fix(build): 将 iOS 构建最低部署版本从 17.5 下调至 11(AST 库为 12)
8月14日 关联了pull request:fix(build): 将 iOS 构建最低部署版本从 17.5 下调至 11(syntax 库为 12)
8月15日 添加了label:1.2.0-beta.rc1
8月15日 添加了label:1.3.0-alpha.01
8月15日 删除了label:1.2.0-beta.rc1
Aleksey Mikhailov
8月25日 评论:
8月25日 评论:
was fixed on 1.3.0-alpha.20260817010024


8月25日 关闭了 issue
感谢对仓颉社区的支持与关注,欢迎反馈缺陷。
发生了什么问题?
I try to use cangjie binaries on iOS 12 simulator (it's x86_64 only). from source code of cangjie stdlib looks like stdlib compiled with ios 11 minimal version:
x86_64-apple-ios11-simulatorso i try to compile my code with
x86_64-apple-ios12-simulator. but in result i got ios 17.5 minos:期望行为是什么?
minos of binary should be 12 if we pass ios12 argument. this should work on every ios target - simulator and device, Apple Silicon and Intel.
如何复现该缺陷
test.cj:
try to compile:
check version:
will be:
其他补充信息
if we pass custom linking options - issue in our binary will be fixed, but issue still exist in stdlib, so we still can't use this binaries in ios 12 simulator (or any other ios lower then 17.5).
in this case result will be:
but also:
we can check cangjie-std-core and see:
cjc版本信息
Cangjie Compiler: 1.1.0-alpha.20260120020001 (cjnative)
Target: aarch64-apple-darwin
分支版本信息
[x] dev
[ ] main
[ ] release/1.0
[ ] release/OpenHarmony-release-6.0