RxDataSources icon indicating copy to clipboard operation
RxDataSources copied to clipboard

Example app cannot run.

Open lm2343635 opened this issue 6 years ago • 22 comments

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

lm2343635 avatar Sep 07 '18 01:09 lm2343635

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

FranklySimple avatar Oct 04 '18 12:10 FranklySimple

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

lm2343635 avatar Oct 05 '18 01:10 lm2343635

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

FranklySimple avatar Oct 05 '18 06:10 FranklySimple

image

Build error 😂😂😂

lm2343635 avatar Oct 05 '18 08:10 lm2343635

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$ 

cozzin avatar Nov 06 '18 16:11 cozzin

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

Supporting multiple integration methods took too much time.

kzaher avatar Nov 06 '18 19:11 kzaher

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

lm2343635 avatar Nov 07 '18 01:11 lm2343635

@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`.

cozzin avatar Nov 07 '18 01:11 cozzin

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

lm2343635 avatar Nov 07 '18 01:11 lm2343635

@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 https://github.com/RxSwiftCommunity/RxDataSources/issues/261#issuecomment-436378363, the Podfile has been removed based on the current master branch. f54c744ed0f78c5f419d4e6bb71372ed4dc75177

cozzin avatar Nov 07 '18 01:11 cozzin

Run carthage update --platform iOS in the directory RxDataSources

lm2343635 avatar Nov 07 '18 01:11 lm2343635

$ 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

cozzin avatar Nov 07 '18 03:11 cozzin

Try to move the RxDataSources.xcodeproj to your project.

lm2343635 avatar Nov 07 '18 03:11 lm2343635

@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.

cozzin avatar Nov 07 '18 07:11 cozzin

Open Finder and drop it into your Xcode.

lm2343635 avatar Nov 07 '18 07:11 lm2343635

If you checked the project with git, run

git submodule init
git submodule update

mkko avatar Nov 07 '18 07:11 mkko

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

cozzin avatar Dec 07 '18 05:12 cozzin

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!!

AjinkyaSharma avatar Jan 09 '19 10:01 AjinkyaSharma

@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.

mkko avatar Jan 09 '19 12:01 mkko

carthage update --use-xcframeworks

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

philosopherdog avatar Oct 29 '21 14:10 philosopherdog

Try to move the RxDataSources.xcodeproj to your project.

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

spraveenk91 avatar Dec 05 '21 16:12 spraveenk91

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

WingCH avatar Jan 03 '23 09:01 WingCH