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

Example app cannot run. #261

Open
lm2343635 opened this issue Sep 7, 2018 · 22 comments
Open

Example app cannot run. #261

lm2343635 opened this issue Sep 7, 2018 · 22 comments

Comments

@lm2343635
Copy link
Member

I have downloaded the repository with git clone and installed the dependencies with Carthage update.
When I tried to run the Example, I found that there is no Rx.xcodeproj (it is red).
I moved the RxDataSources.xcodeproj behind the Rx.xcodeproj and the demo app was launched.
However, the demo was crashed.
image

@FranklySimple
Copy link

I hit the same issue a couple of days ago.
You could try:
Make sure you have the official xcode 10 release version, and have set the cl setting to the release version.
Can also try to remove all versions of xcode and reinstalling xcode 10

@lm2343635
Copy link
Member Author

lm2343635 commented Oct 5, 2018

How can I set the cl setting to the release version?

@FranklySimple
Copy link

xcode --> preferences --> locations --> command line tools: select the xcode 10 release version

@lm2343635
Copy link
Member Author

image

Build error 😂😂😂

@cozzin
Copy link
Member

cozzin commented Nov 6, 2018

This is a bit different from the problem, but I could not run the example file either.
I can't install pod file for example app.

seonghoui-MacBookPro:RxDataSources seongho$ ls
CHANGELOG.md		LICENSE.md		RxDataSources.podspec
Cartfile		Package.resolved	RxDataSources.xcodeproj
Cartfile.resolved	Package.swift		Sources
Differentiator.podspec	Podfile			Tests
Examples		README.md
seonghoui-MacBookPro:RxDataSources seongho$ pod install
Analyzing dependencies
[!] Unable to find a target named `Example`, did find `RxDataSources`, `Differentiator`, and `Tests`.
seonghoui-MacBookPro:RxDataSources seongho$ 

@kzaher
Copy link
Member

kzaher commented Nov 6, 2018

I've forgot to remote the Podfile. We are using git submodules now.

Supporting multiple integration methods took too much time.

@lm2343635
Copy link
Member Author

You need to run pod install in the directory Examples @cozzin

@cozzin
Copy link
Member

cozzin commented Nov 7, 2018

@kzaher hi, thank you for your comment.
I had tried to use git submodules, but I still can't build example app.

seonghoui-MacBookPro:dev seongho$ cd /Users/seongho/Documents/dev/RxDataSources/Examples 
seonghoui-MacBookPro:Examples seongho$ /Users/seongho/Documents/dev/RxDataSources/Examples/dependencies.sh 
Submodule path 'RxSwift': checked out 'd158e7700655114e990313948d2de561d50e1115'
HEAD is now at e8aa1d89 Release 4.4.0

2018-11-07 9 47 07

Here is the project file https://drive.google.com/file/d/11mv22zSYxNlIlSulAgCFSw8VL4aqfavC/view?usp=sharing.

@lm2343635 hello, I also tried pod install in the directory Examples, but I can't install pod.

seonghoui-MacBookPro:RxDataSources seongho$ cd Examples/
seonghoui-MacBookPro:Examples seongho$ pod install
[in /Users/seongho/Documents/dev/RxDataSources]
Analyzing dependencies
[!] Unable to find a target named `Example`, did find `RxDataSources`, `Differentiator`, and `Tests`.

@lm2343635
Copy link
Member Author

lm2343635 commented Nov 7, 2018

RxDataSources/Examples/Example @cozzin
Run the pod install in the directory which contains a file named Podfile

@cozzin
Copy link
Member

cozzin commented Nov 7, 2018

@lm2343635 I've changed the current folder location, but the result is the same.

seonghoui-MacBookPro:Example seongho$ cd /Users/seongho/Documents/dev/RxDataSources/Examples/Example 
seonghoui-MacBookPro:Example seongho$ pod install
[in /Users/seongho/Documents/dev/RxDataSources]
Analyzing dependencies
[!] Unable to find a target named `Example`, did find `RxDataSources`, `Differentiator`, and `Tests`.

First of all, as mentioned #261 (comment), the Podfile has been removed based on the current master branch. f54c744

@lm2343635
Copy link
Member Author

Run carthage update --platform iOS in the directory RxDataSources

@cozzin
Copy link
Member

cozzin commented Nov 7, 2018

$ carthage update --platform iOS
*** Fetching RxSwift
*** Checking out RxSwift at "4.4.0"
*** xcodebuild output can be found in /var/folders/8t/bj9zpqgd73s3tcsmmrcvzf700000gn/T/carthage-xcodebuild.iGhvH2.log
*** Downloading RxSwift.framework binary at "Atomic"

@lm2343635 thank you for your help. but it also doesn't work. Have you tested on your current master branch?

2018-11-07 12 42 21

@lm2343635
Copy link
Member Author

Try to move the RxDataSources.xcodeproj to your project.

@cozzin
Copy link
Member

cozzin commented Nov 7, 2018

@lm2343635 Where do I have to move RxDataSources.xcodeproj file?

@kzaher If a client need to install Carthage and move the files into the example files, I think we need to provide a guide document or change the structure.

@lm2343635
Copy link
Member Author

Open Finder and drop it into your Xcode.

@mkko
Copy link

mkko commented Nov 7, 2018

If you checked the project with git, run

git submodule init
git submodule update

@cozzin
Copy link
Member

cozzin commented Dec 7, 2018

After deleting all the files and cloning again, I went to the example file and ran the dependencies.sh file so that I could build it. Thank you.

/Users/user/Documents/Code/RxDataSources/Examples/dependencies.sh

@AjinkyaSharma
Copy link

As of today, when i clone the project, I don't see any dependencies.sh. The same error keeps showing. No such module RXSwift. Plus there is no podfile to run a pod install!!

@mkko
Copy link

mkko commented Jan 9, 2019

@AjinkyaSharma, looks like the example is using carthage. Just run

carthage update

at the root of the project (where the Cartfile is). It was a submodule once, but apparently was changed a month ago.

@philosopherdog
Copy link

carthage update --use-xcframeworks

You will also likely need to change minimum versions of deployment targets to get it to run

@spraveenk91
Copy link

Try to move the RxDataSources.xcodeproj to your project.

This should be the accepted answer as it is working and it should be closed.

@WingCH
Copy link

WingCH commented Jan 3, 2023

It would be helpful if the README included instructions on how to run the example in Xcode 14.1.
I followed the steps below and was able to successfully run the example.

  1. carthage update --use-xcframeworks
  2. modify ios Minimum Deployments from 8.0 to 9.0

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

No branches or pull requests

9 participants