Skip to content

[bug] ConverterServer がリソースバンドルを読めずクラッシュ #342

Description

@L4Ph

環境

azooKey v0.1.5-beta.1 / macOS 26.5.1

原因

azooKeyMac.xcodeproj の "Build ConverterServer" フェーズが実行ファイルだけをコピーし、swift buildCore/.build/<config>/ に隣接生成する *.bundle をコピーしていない。
実行ファイルは Contents/MacOS/ 配下なので Bundle.module の探索先は .app ルートになるが、バンドルが無いため失敗(Contents/Resources 内のものは ConverterServer からは参照されない)。

修正案

"Build ConverterServer" の cp の後に追記:

app_root="${TARGET_BUILD_DIR}/${WRAPPER_NAME}"
for b in "${SRCROOT}/Core/.build/${swift_configuration}/"*.bundle; do cp -R "$b" "${app_root}/"; done

回避策

.app ルートに各バンドルのシンボリックリンクを張ると解消(確認済み)。

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions