Skip to content

Fix release build.#98

Open
iborusik wants to merge 4 commits into
tattn:mainfrom
iborusik:fix-release-stb-image
Open

Fix release build.#98
iborusik wants to merge 4 commits into
tattn:mainfrom
iborusik:fix-release-stb-image

Conversation

@iborusik
Copy link
Copy Markdown

@iborusik iborusik commented Jun 6, 2026

Motivation:

Unable to build in release mode.
Choose Mac or iOS target -> Edit Scheme -> Build type = Release.

Linker error:

Undefined symbol: _stbi_load_from_memory

Reason:
Compiler strips these symbols. Linker can't find them.

Additional fix:
#if DEBUG
over chat view.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request wraps a preview block in ChatView.swift with #if DEBUG conditional compilation blocks and marks several C-interop functions in stb_image.swift as public with a @used attribute. The review feedback correctly points out that @used is not a valid Swift attribute and will cause compilation errors, suggesting the use of @_used instead to prevent symbol stripping in release builds.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread Sources/LocalLLMClientLlama/stb_image.swift Outdated
Comment thread Sources/LocalLLMClientLlama/stb_image.swift Outdated
Comment thread Sources/LocalLLMClientLlama/stb_image.swift Outdated
iborusik and others added 3 commits June 6, 2026 12:48
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
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.

1 participant