Closed lucasromanomr closed 4 months ago
Can you provide some more details:
bazel
? I see your error is coming from rules_xcodeprojCan you provide some more details:
- Does this happen using just
bazel
? I see your error is coming from rules_xcodeproj- What rules_xcodeproj version are you using?
- What Bazel version are you using?
It happens both when running with rules_xcodeproj
and when running normally through the terminal (bazel test //...
)
It also happens when I try to run the app
Bazel version: 7.1.0
rules_ios: 4.4.0
rules_xcodeproj: 2.2.0
Hmm our project builds fine with those versions. There might be some issues in Bazel 7 with import_middleman do you know if that's used in your project at all?
Yes, it is enabled, I am using apple.arm64_simulator_use_device_deps
.
However, looking a little more, I ended up missing a small part of the Log (a single line), and after running it more than once, I ended up seeing this single line.
It just happened that a cocoapods dependency had the wrong settings (I'm using cocoapods-bazel), when used the bazel settings were being declared wrong for the Pod, after fixing this, being able to compile the application and run the tests. (Something has changed for the better with this, as before there were no errors and now they are)
What happened was that in apple_framework
an item was being passed in the sdk_frameworks
list that does not exist, and this gave the error, saying that it was not possible to locate this dependency, by chance I had not seen this line that said that it had not been possible to link the dependency, because it was not an sdk_frameworks.
I'm sorry, I should have insisted a little more before opening the issue referencing the update.
No worries! Thanks for following up and I'm glad it's working now.
I'd also look into removing the use of that arm device deps flag if possible. It'll make your builds simpler. You should be able to get rid of it if all your prebuilt dependencies define the correct simulator slices
After updating the rules to support Bazel 7, I am no longer able to run the App or the App tests, I don't have any problems with modules, they are using testOnly and it doesn't run on a testHost, but the apps end up having problems.
I believe it has to be directly linked to #850, but I'm not sure. I also don't know what I could be seeing or having to configure to support Bazel 7
If you have a suggestion of what I could be doing, or something I didn't do