Skip to content

Conversation

@shai-almog
Copy link
Collaborator

Summary

  • extend the scripts iOS workflow with a step that compiles any generated Xcode projects for the iOS simulator

Testing

  • none

https://chatgpt.com/codex/tasks/task_e_68ef061e115c8331a16887d76a368caf

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting

Comment on lines 33 to 61
- name: Compile generated Xcode project for Simulator
run: |
set -euo pipefail
tmpdir="${TMPDIR:-/tmp}"
derived_data="${tmpdir%/}/codenameone-derived"
mkdir -p "$derived_data"
built_any=0
while IFS= read -r -d '' project; do
built_any=1
scheme="$(basename "$project" .xcodeproj)"
echo "::group::Building $scheme from $project"
xcodebuild \
-project "$project" \
-scheme "$scheme" \
-sdk iphonesimulator \
-configuration Debug \
-destination 'generic/platform=iOS Simulator' \
-derivedDataPath "$derived_data" \
CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO \
build
echo "::endgroup::"
done < <(find "$PWD" -type d -path '*/dist/*.xcodeproj' -print0)
if [ "$built_any" -eq 0 ]; then
echo "::error::No generated Xcode project found under dist directories" >&2
find "$PWD" -maxdepth 6 -type d -name '*.xcodeproj'
exit 1

Choose a reason for hiding this comment

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

P1 Badge Simulator build step always fails without generated project

The new step assumes find "$PWD" -type d -path '*/dist/*.xcodeproj' will return at least one Xcode project and explicitly exits with ::error:: if none are found. However, the preceding scripts/build-ios-port.sh simply runs Maven to build the iOS port (see scripts/build-ios-port.sh) and does not generate any .xcodeproj files. As written, this step will never find a project and will fail every run of the scripts-ios workflow even when the build itself succeeds, effectively breaking CI for every PR that touches scripts. Consider generating a project before this step or making the step conditional so the workflow still passes when no projects are produced.

Useful? React with 👍 / 👎.

@shai-almog shai-almog merged commit 93abb99 into master Oct 16, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants