Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I cannot run playground #3383

Closed
HanXiaoTeng opened this issue Jan 24, 2017 · 14 comments
Closed

I cannot run playground #3383

HanXiaoTeng opened this issue Jan 24, 2017 · 14 comments
Labels

Comments

@HanXiaoTeng
Copy link

I already build result,reactiveSwift and reactiveCocoa,and i open the ReactiveCocoa-ios.playground, but it still "run Sanbox" then "objc[15129]: pthread_rwlock_wrlock failed (11)"

@alper
Copy link
Contributor

alper commented Feb 8, 2017

I did a fresh checkout and tried out the steps for the playground. I got stuck at the step:

Build ReactiveSwift-iOS scheme

This scheme seems to be geared towards a MacOS target and not an iOS one.

@sharplet
Copy link
Contributor

sharplet commented Feb 8, 2017

@alper That can happen if you run checkout step while the workspace is already open in Xcode. Can you try closing Xcode and reopening it?

@alper
Copy link
Contributor

alper commented Feb 8, 2017

  • I deleted everything.
  • Did a new checkout.
  • Closed the playground and the workspace.
  • Did the git submodule init
  • Opened the workspace and started building, but ReactiveSwift-iOS still targets My Mac.

@alper
Copy link
Contributor

alper commented Feb 8, 2017

I'm following the instructions from the playground.

I tried again from scratch and got the same result.

scheme

@ikesyo
Copy link
Member

ikesyo commented Feb 8, 2017

You may need this git submodule update --init --recursive. The missing --recursive option is important and that should be documentation bug.

@ikesyo ikesyo added the bug label Feb 8, 2017
@alper
Copy link
Contributor

alper commented Feb 8, 2017

Ok. Now I'm further along, but now it can't find the built libraries.

(Also the playground is empty.)

Playground execution failed: error: Sandbox.xcplaygroundpage:9:8: error: no such module 'Result'
import Result
       ^

error: Sandbox.xcplaygroundpage:10:8: error: no such module 'ReactiveCocoa'
import ReactiveCocoa
       ^

error: Sandbox.xcplaygroundpage:11:8: error: no such module 'ReactiveSwift'
import ReactiveSwift
       ^

@ikesyo
Copy link
Member

ikesyo commented Feb 8, 2017

Are you sure that you open (select) the playground within the workspace? Otherwise playground files can't find frameworks. That is a limitation or requirement of Xcode itself.

@alper
Copy link
Contributor

alper commented Feb 8, 2017

Yes, I am. It still can't find them.

@Travis4938
Copy link

Guys, I unfortunately trapped into this problem although I taked the steps as the guide in the playground。 Here is the log :

Playground execution failed: error: Sandbox.xcplaygroundpage:11:8: error: no such module 'ReactiveCocoa'
import ReactiveCocoa
^

@lizelu
Copy link

lizelu commented May 23, 2017

I have a same trouble,How can I solve it?Below is error log

Playground execution failed: error: Sandbox.xcplaygroundpage:10:8: error: no such module 'ReactiveSwift'
import ReactiveSwift
^

@akashivskyy
Copy link

akashivskyy commented May 23, 2017

Did you perform steps as described in an important comment on top of the playground?

@lizelu
Copy link

lizelu commented May 23, 2017

I clone https://github.com/ReactiveCocoa/ReactiveSwift.git Project, and perform setps as below。Result-Mac build success, but ReactiveSwift-macOS build fail. When I open ReactiveSwift.playground file, throw top error.

Retrieve the project dependencies using one of the following terminal commands from the ReactiveSwift project root directory:
git submodule update --init OR, if you have Carthage installed
carthage checkout --no-use-binaries

Open ReactiveSwift.xcworkspace
Build Result-Mac scheme
Build ReactiveSwift-macOS scheme
Finally open the ReactiveSwift.playground
Choose View > Show Debug Area

@andersio
Copy link
Member

andersio commented May 23, 2017

Make sure you open the playground within the workspace. Please also note that master requires Swift 3.1 and Xcode 8.3. If you are using Xcode 8.0 to 8.2, you should checkout the 1.1.3 release instead.

@lizelu
Copy link

lizelu commented May 24, 2017

I checkout the 1.1.3 release, It`s ok, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants