Error about minimum deployment target

I can't run my playground anymore in Xcode7. I have a workspace, with a few projects (apps, frameworks). The playground imports a few of the frameworks. This was working in Xcode6, but now I get errors like the following:


Playground execution failed: Untitled Page.xcplaygroundpage:3:8: error: module file's minimum deployment target is ios8.3 v8.3: [DerivedData]/[MyWorkspace...]/Build/Products/Debug-iphonesimulator/MyFramework.framework/Modules/MyFramework.swiftmodule/x86_64.swiftmodule import MyFramework


I don't see any way to control the minimum deployment target on the playground, to make it match. Any ideas?


Rob

Answered by wilmot in 11428022

Try changing the Deployment Target of your frameworks to 8.0. Currently iOS playgrounds have a deployment target of 8.0 in Xcode 7 beta.

Did you update the project for Xcode 7? If so, try editing the source of the playground (see the xml metadata) to bring it up to date.

Anything from the Xcode 7 b releases notes shed light?


Playgrounds

  1. Opening a Playground that was previously displaying the Version Editor may present an alert stating, “The file “MyPlayground.playground” couldn’t be opened because you don’t have permission to view
    it.” (20623808).

    Workaround: Dismiss the alert dialog and show the Standard Editor (Command-Return).

    Playgrounds sometimes show a window with no editor if they are opened as part of Xcode launching (20694143)

    Workaround: Close and re-open the playground.

    Executing an iOS Playground for the first time may take longer than subsequent executions. (21163503)

    For old-style playgrounds, the menu item Edit->Convert->To Latest Swift Syntax... is greyed out. (20902099)

    Workaround: Upgrade the playground before attempting to convert to Swift 2.0 by choosing Editor- >Upgrade Playground...

    Playground pages may recompile each time they are navigated to, even when there are no changes. (21177662)

    Playgrounds live views may not show images when using the timeline slider. (21261310)


Accepted Answer

Try changing the Deployment Target of your frameworks to 8.0. Currently iOS playgrounds have a deployment target of 8.0 in Xcode 7 beta.

Thank you, that did it. I guess if I wanted a different deployment target for my modules I'd be in trouble, but I'm fine with 8.0.


Rob

Is it possible to have different deployment target for my modules?

Is it possible to have different deployment target for my modules?

Yes. Having a framework with an older deployment target than your app shouldn’t pose any problems. However, having a framework with a newer deployment target is going to be tricky. Your app won’t be able to link directly to that framework because there are OS versions where your app can run but the framework can’t.

Given that (with Swift) your frameworks must be bundled inside your app, I question the utility of this. What do you hope to gain by having different deployment targets?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

WWDC runs Mon, 5 Jun through to Fri, 9 Jun. During that time all of DTS will be at the conference, helping folks out face-to-face. http://developer.apple.com/wwdc/

Error about minimum deployment target
 
 
Q