juicycleff / flutter-unity-view-widget

Embeddable unity game engine view for Flutter. Advance demo here https://github.com/juicycleff/flutter-unity-arkit-demo
BSD 3-Clause "New" or "Revised" License
2.09k stars 504 forks source link

Cycle inside Runner #943

Open kodypeterson opened 2 months ago

kodypeterson commented 2 months ago

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'
liujunqiang29 commented 2 months ago

I have the same problem, is it solved?

gorak1991 commented 2 months ago

I also have the same issue, any solution?

mkoehne commented 2 months ago

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".

Ahmadre commented 1 month ago

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.