Skip to content

[xcodeproj] IDE issues with test projects / xcodeproj #281

@jerrymarino

Description

@jerrymarino

I'm working to add a new way to speed up rules_ios builds that use frameworks, AKA virtual frameworks ( #277 ). On the Xcode side hitting a few hiccups with test projects today. I've attempted to get a baseline of what is already working in rules_ios but, most of the example projects are broken from the IDE's perspective. This includes debugging, jump to definition, and other features.

To reproduce:

git clone git@github.com:bazel-ios/rules_ios.git
cd rules_ios
bazel run tests/ios/xcodeproj:Test-Imports-App-Project
open tests/ios/xcodeproj/Test-Imports-App-Project.xcodeproj

I've noticed that rules_ios requires a build to copy some files into derived data. I tried doing a build of the app in the test project TestImports-App inside of Xcode as well.

Debugger

  1. Set a breakpoint inside of the main file
  2. Run the program
  3. observe that breakpoints don't resolve - see attached screenshot

Source editor

  1. Open the file empty.swift
  2. Navigate to the interface of a symbol from "SomeFramework"
  3. observe it navigating to a generated location

RulesIOSBrokenJumptoDef

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