tuist / tuist

Tuist's CLI
https://tuist.io
MIT License
4.57k stars 554 forks source link

Setting the mergedBinaryType of the App Target to .automatic causes a crash. (Only Device, not Simulator) #5644

Open Dev-MJ opened 10 months ago

Dev-MJ commented 10 months ago

What problem or need do you have?

The situation below is what happens when building on a real device. It does not happen in the simulator.

I'm using Tuist to configure the app.

If you set the mergedBinaryType of the target in the App to .automatic and forward the dependencies to a personally created dynamic framework, a crash will occur. (.disable does not occur.)

Target(name: name,
       platform: .iOS,
       product: .app,
....
mergedBinaryType: .automatic)

When creating a target for HomeFeature framework, set it to mergeable: true.

Target(name: name,
       platform: .iOS,
       product: .framework,
...
mergeable: true)

However, it occurs independently of the mergeable value of HomeFeature. It seems to be only related to the mergedBinaryType of App Target.

스크린샷 2023-12-07 오후 5 18 14 스크린샷 2023-12-07 오후 5 18 22

I'm attaching the demo app below. TuistMergeableTests.zip

The dependency of the demo app is simple.

CorpApp -> HomeFeature(Dynamic framework)

Can you help me?

Potential solution

No response

macOS version

14.1.2

Tuist version

3.33.4

Xcode version

15.0.1

Dev-MJ commented 9 months ago

This issue is still occurring. (tuist version 3.39.3, xcode 15.1, macOS 14.2.1)

pepicrft commented 9 months ago

Thanks for reporting this @Dev-MJ. We'll try to prioritize it, but I can't give you any estimates because we are currently focusing on shipping Tuist 4 in the next two weeks.