游乐场导入:没有这样的模块“Foo" [英] Playground Import: No Such Module 'Foo'
问题描述
我一直严格按照 Apple 的说明将自定义模块导入到 Playground 中,包括
这是另一种尝试,基于@EricD的回答,显示目录结构,没有骰子.
解决方案,来自 Apple 支持,是调整我的 Xcode 首选项.在 Locations :: Advanced 我的配置是Legacy".通过更改为唯一"并撤消我尝试插入的任何路径,Playgrounds 可以现在导入框架.
I've diligently followed the Apple instructions to import a custom module into a playground, including the instructions here. And yet I get:
Playground execution failed: /var/folders/z3/kd0nj4ln1rgcpm8bdz7067wh0000gs/T/./lldb/1874/playground1.swift:7:8: error: no such module 'Foo' import Foo
How can I recover to a working Playground import? [Edit: Note, two answers have produced detailed instructions to associate a playground with a framework; I have followed those instructions but no luck. The solution will need to involve reconfiguring something in Xcode; my installation is apparently broken]
Detailed images of the error and attempts:
Here is another attempt, based on the answer of @EricD, showing the directory structure, no dice.
The solution, from Apple Support, was to adjust my Xcode Preferences. On Locations :: Advanced my configuration was 'Legacy'. By changing to 'Unique', and undoing any paths I'd attempted to insert, Playgrounds can now import frameworks.
这篇关于游乐场导入:没有这样的模块“Foo"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!