flutter-unity-view-widget icon indicating copy to clipboard operation
flutter-unity-view-widget copied to clipboard

Cycle inside Runner

Open kodypeterson opened this issue 10 months ago • 4 comments

Not sure what is happening here, after adding "UnityFramework.framework" to the frameworks section of the Runner this is the error I get on building the app for device. Any ideas?

Error (Xcode): Cycle inside Runner; building could produce unreliable results.
Cycle details:
→ Target 'Runner' has copy command from '/Users/XXX/Projects/XXX/build/ios/Debug-iphoneos/UnityFramework.framework' to '/Users/XXX/Projects/XXX/build/ios/Debug-iphoneos/Runner.app/Frameworks/UnityFramework.framework'
○ That command depends on command in Target 'Runner': script phase “Thin Binary”
○ Target 'Runner' has process command with output '/Users/XXX/Projects/XXX/build/ios/Debug-iphoneos/Runner.app/Info.plist'
○ Target 'Runner' has copy command from '/Users/XXX/Projects/XXX/build/ios/Debug-iphoneos/UnityFramework.framework' to '/Users/XXX/Projects/XXX/build/ios/Debug-iphoneos/Runner.app/Frameworks/UnityFramework.framework'

kodypeterson avatar Apr 15 '24 19:04 kodypeterson

I have the same problem, is it solved?

liujunqiang29 avatar Apr 20 '24 04:04 liujunqiang29

I also have the same issue, any solution?

gorak1991 avatar Apr 25 '24 13:04 gorak1991

I had the same problem. Found a solution here: https://forum.unity.com/threads/xcode-15-cycle-inside-unity-iphone-building-could-produce-unreliable-results.1496747/

In the "Unity-iPhone" project I have moved up the "Embed Frameworks" in Build Phases below "Run Build Tool Plug-ins".

mkoehne avatar Apr 30 '24 10:04 mkoehne

This is an XCode misbehavior.

This happens after you add an "Embeded Framework". After you've added the UnityFramework to your Runner, just head over to the BuildPhases section and you'll see that XCode appended the "Embed Frameworks" section to the bottom of the list! Which is wrong! You need to drag it underneeth the Run Script Phase. This solved it for me.

Ahmadre avatar May 23 '24 14:05 Ahmadre