chucker / Mastonaut

Simple, elegant, and native Mastodon client for Mac.
GNU General Public License v3.0
118 stars 6 forks source link

Copy Files build phase contains a reference to a missing file 'PullRefreshableScrollView.framework'. #145

Open stuffmc opened 1 year ago

stuffmc commented 1 year ago

Build error under Version 15.0 beta 4 (15A5195m). Or what did I miss?

chucker commented 1 year ago

Did you

?

(PullRefreshableScrollView.framework specifically is a git submodule, but you'll run into further issues if you haven't also done pod install.)

stuffmc commented 1 year ago

Thanks. Had not done git submodule update --init --recursive. Seems I'm used to clone with Tower, which probably does it automatically, and this time I did with Xcode 15. Also, I had hoped I could "get away" ;-) without having to install Cocoapods on this new fresh macOS install. Yurk, I guess I'll have to install it then ;-)

chucker commented 1 year ago

Also, I had hoped I could "get away" ;-) without having to install Cocoapods on this new fresh macOS install.

I would definitely like to move the remaining CocoaPods stuff to SwiftPM. (Though I'm not terribly crazy about Xcode's package management UI. But CocoaPods's isn't great either, so…)

stuffmc commented 1 year ago

CocoaPods will generate two 'Acknowledgements' files for each target specified in your Podfile which contain the License details for each Pod used in that target

So if we have no Cocoapods, we don't need this anymore, right? There's maybe a similar Swift Package?

chucker commented 1 year ago

There's maybe a similar Swift Package?

That would be my hope, but I haven't found anything nice yet.

stuffmc commented 1 year ago

~/Library/Developer/Xcode/DerivedData/Mastonaut-gghwncflwfvxxlcxixbtclitzidj/Build/Intermediates.noindex/Mastonaut.build/Debug/MastonautHelp.build/Script-5F795CF72A463D2100F02B3D.sh: line 7: /opt/homebrew/opt/chruby/share/chruby/chruby.sh: No such file or directory

Any Idea what would be wrong with my Ruby? :(

stuffmc commented 1 year ago

So I had to brew install chruby but now I'm into the next problem :(

Build input file cannot be found: '~/Library/Developer/Xcode/DerivedData/Mastonaut-gghwncflwfvxxlcxixbtclitzidj/Build/Products/Debug/MastonautHelp.help/Contents/MacOS/MastonautHelp'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it?

chucker commented 1 year ago

Any Idea what would be wrong with my Ruby? :(

I ended up not using macOS's built-in Ruby because I ran into permissions issues. I'm not sure those are solvable, and going with a custom Ruby using chruby was easier.

Build input file cannot be found

Do you need the help? If not, maybe remove it in Targets → Mastonaut → Build Phases → Target Dependencies

Does ~/Library/Developer/Xcode/DerivedData/Mastonaut-gghwncflwfvxxlcxixbtclitzidj/Build/Products/Debug/MastonautHelp.help exist? Is there a script in ~/Library/Developer/Xcode/DerivedData/Mastonaut-gghwncflwfvxxlcxixbtclitzidj/Build/Intermediates.noindex/Mastonaut.build/Debug/MastonautHelp.build?

What happens if you go in your repo's /MastonautHelp and manually run these:

source /opt/homebrew/opt/chruby/share/chruby/chruby.sh
source /opt/homebrew/opt/chruby/share/chruby/auto.sh
chruby ruby-3.1.3
make