Skip to content
  • Home
  • About us
  • Contact
  • Privacy Policy
  • Disclaimer
  • Swift Online Compiler
iOS Interview Questions and Tutorials

iOS Interview Questions and Tutorials

Cycle inside MyApp; building could produce unreliable results

Posted on November 1, 2023 By Sid 2 Comments on Cycle inside MyApp; building could produce unreliable results

Problem 

When trying to build with XCode 15 getting the following error-

“Cycle inside MyApp; building could produce unreliable results.”

It is working fine with XCode 12, 13 and 14

Solution:

Follow the below steps.

  1. Select Target
  2. Goto Build Phase tab.
  3. Drag ‘Embed App Extension’ and place it below ‘Run script’.

Run it again, It should work.

XCode 15 Errors Tags:Cycle inside MyApp, XCode 15 error

Post navigation

Previous Post: Property Wrapper in Swift: Brief Introduction with Code Examples
Next Post: User Defaults in Swift

Comments (2) on “Cycle inside MyApp; building could produce unreliable results”

  1. Anominous says:
    June 20, 2024 at 9:36 pm

    @sid you blog is amazing ! can you more elaborate this solution with some screenshots and details.

    Reply
    1. Sid says:
      June 21, 2024 at 6:23 pm

      Dear @Anominous, A circular dependency occurs when a build phase depends on another phase that in turn depends on the first phase. This creates a loop that Xcode cannot resolve.

      In our case, the problem arises because:

      Embed App Extension Phase is responsible for embedding app extensions (like widgets, notification content, etc.) into the app.

      Run Script phase typically runs custom scripts that may process resources or configure settings needed by subsequent phases.

      If the Embed App Extension phase is executed before the Run Script phase, it might attempt to embed resources that have not yet been configured or generated by the script. This misordering causes a cyclic dependency error.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Most Asked iOS Interview Questions

  • Top iOS Interview Questions and Answers

Categories

  • Associated Types(7)
  • Blog
  • Dictionary in Swift(20)
  • Initializers
  • Property Wrapper
  • Singleton in Swift
  • User Defaults(4)
  • XCode 15 Errors

Recent Comments

  1. Sid on Cycle inside MyApp; building could produce unreliable results
  2. Anominous on Cycle inside MyApp; building could produce unreliable results
  3. Aisha on @objc Attribute in Swift

Recent Posts

  • Enums in Swift: Brief Explanation with Code Examples
  • Higher-Order Functions in Swift: Brief Explanation with Code Examples
  • Mutability in Structs and Classes in Swift
  • Delegate Pattern in Swift
  • resueIdentifier in Swift

DSA in Swift

  • 2D Array in Swift: Interview Questions

Copyright © 2025 iOS Interview Questions and Tutorials.

Powered by PressBook WordPress theme