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

Trying to build project FAILED #249

Open
theokeist opened this issue Nov 30, 2023 · 4 comments
Open

Trying to build project FAILED #249

theokeist opened this issue Nov 30, 2023 · 4 comments

Comments

@theokeist
Copy link

Hi am trying to build iMast on my macOS Monterey version...
is is my first time with Xcode/Swift soo please be patient with me xD
I succesfully run bundle install && pod install
Xcode version 14.2

And im getting following errors on build, mostly this one I think :

the package at '/' cannot be accessed (malformedResponse("unexpected tree entry \'100644 blob ce3e58686de071fc8503680b073c7fbebfd3d9a3\t\"\\342\\200\\273ikemen.podspec\"\' in \'040000 tree 2f3998c1c15d043de92dceabe06cc77cab966a56\t.github\n100644 blob ca8eabde3b1bddf047d0695ed73553f54c9f3ee1\t.gitignore\n040000 tree 0b6c3ae7a6e2226227ff5f9fb2d6a927ed4fd918\t.swiftpm\n100644 blob 0e37826f52d9f8dc192a5cf0175d66786d17e62f\t.travis.yml\n040000 tree e669645c8ff55d2f05569b470ed634cc3968eacf\tExample\n100644 blob e073238ff00b43c5012fc8c34566e62f282c2aa9\tGemfile\n100644 blob 72b0de73e309b48b8a5091238851ab3d7059e745\tGemfile.lock\n100644 blob e49a0781a68026ecacaa831160521ab5eddcdad9\tLICENSE\n100644 blob 12fbacee775cec2bf7002374d5fad79e94c49d96\tPackage.resolved\n100644 blob 838ae5375f526d9a233096f49788781bca1e3210\tPackage.swift\n040000 tree 24a82587b31820f1809f738c014116c6f7495c15\tPod\n100644 blob 796a4b81a069c3a8ca688fa8ac377bcb0d4e6d84\tREADME.md\n120000 blob 3c5a8e715ad5e81a0fba3ef0190e77a68be83f4b\t_Pods.xcodeproj\n100644 blob ce3e58686de071fc8503680b073c7fbebfd3d9a3\t\"\\342\\200\\273ikemen.podspec\"\'"))
Snímek obrazovky 2023-11-30 v 3 57 45

@rinsuki
Copy link
Member

rinsuki commented Nov 30, 2023

Could you try this:

  • Quit Xcode first
  • Open Terminal (or iTerm2 or something), and execute git config --global core.quotepath false
  • Restart Xcode

@rinsuki
Copy link
Member

rinsuki commented Nov 30, 2023

by the way, we are not supporting macOS Monterey and using some new APIs introduceted after Xcode 14.2, so you might be need to upgrade macOS and Xcode first.

@theokeist
Copy link
Author

Hi thanks for the tip, it seems to rsolve issues for now.
Im unable to upgrade macOS, Monterey is my highest version for my laptop unfortunetly. -I will see what I can do, at minimum I will contribute with translations thanks 😀

BTW what new api ? Can you hive som exemple for me It would be nice study material

@rinsuki
Copy link
Member

rinsuki commented Nov 30, 2023

One of the new APIs that iMast uses is this one: https://developer.apple.com/documentation/authenticationservices/webauthenticationsession

This API provides a Web Authentication Session to the SwiftUI app.

What 'Web Authentication Session' means is that it can open a web page (like an OAuth authorization page) in the app with Safari's cookie, if the user consents to it. This means that if users have already logged in to the Mastodon WebUI, they will not need to input their password again to authorize iMast.

Previously, the login screen was written using a third-party form builder with the UIKit version of that API (which is available for older iOS versions), but I wanted to replace it with a SwiftUI implementation since I want to reduce third-party dependencies.

However, I prefer not to write custom glue code if Apple provides an official drop-in replacement API that works well in the latest iOS versions. This is my policy to reduce development costs.


By the way, if you want to localize app texts, it can be quite tricky:

  • If you want to modify/fix already registered words in our Crowdin, you need to use Crowdin instead. https://crowdin.com/project/imast
    • (For some reasons, syncing non-primary languages (in this project, Japanese is the primary) to Crowdin from GitHub would be hard work.)
  • If you want to make hard-coded texts localizable, probably creating an issue would be a good choice
    • because there are some tricky traps for some cases.
  • If you want to add another language... probably that's not the time, since I'm considering completely rewriting this app from scratch, which means every string will be change.
    • This also applied to previous section, if you want to make iMast to completely localized app.

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

No branches or pull requests

2 participants