skiptools / skiptools/skip-android-bridge

Observation linking error: cannot locate symbol "_ZN5swift9threading5fatalEPKcz"

Open
#18 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
4
Forks
9
Avg merge
41m
Merged PRs (30d)
1

Description

When linking to Observation and building with skip android build, the following linking error occurs:

cannot locate symbol "_ZN5swift9threading5fatalEPKcz" referenced by "/data/local/tmp/swift-android/Android-9EA98374-80B5-494A-9679-A2B5EBE1D083/libswiftObservation.so".

We work around this in SkipAndroidBridge with the following code, but it requires that SkipAndroidBridge be imported (either directly or via SkipFuse):

https://github.com/skiptools/skip-android-bridge/blob/f1f761fa208296b7fa56ee29e725529cc55735ac/Sources/SkipAndroidBridge/Observation.swift#L150-L158

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the linker failure while building with skip android build, then inspect the workaround in SkipAndroidBridge/Sources/SkipAndroidBridge/Observation.swift at lines 150-158. Compare the behavior with and without importing SkipAndroidBridge or SkipFuse. Done means Observation links successfully without requiring that workaround import.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.