Code Monkey home page Code Monkey logo

Comments (25)

shoheiyokoyama avatar shoheiyokoyama commented on August 21, 2024
  1. pod versionを最新にする
  2. ライブラリ名と同じレポジトリを作る
  3. 作ったレポジトリのディレクトリでpod lib create MyLibraryNameコマンドを叩く
  4. Pod/Classesにライブラリ(今回のCustomtextView的な)クラス作成
  5. Exampleの中にexample プロジェクト(今回のViewController)

一旦ここまで出来て、あとは微調整かな。
3~5は不安だったら学校で

from customtextview.

sakatore avatar sakatore commented on August 21, 2024

明日学校来ます?

from customtextview.

shoheiyokoyama avatar shoheiyokoyama commented on August 21, 2024

明日バイト。
そしたらREADME.mdを先に作っててもいいかも。
全部英語でライブラリの説明を書かないといけないから

from customtextview.

sakatore avatar sakatore commented on August 21, 2024

pod入ってないっぽいです。

from customtextview.

shoheiyokoyama avatar shoheiyokoyama commented on August 21, 2024

じゃあインストールして。
ターミナルでやってね。

from customtextview.

sakatore avatar sakatore commented on August 21, 2024

ここミスったらやばいとことかありますか?

from customtextview.

shoheiyokoyama avatar shoheiyokoyama commented on August 21, 2024

podは他のツールとかと依存してないはずだから調べれば多分いける

from customtextview.

shoheiyokoyama avatar shoheiyokoyama commented on August 21, 2024

gem install cocoapods
gem入ってる?

from customtextview.

sakatore avatar sakatore commented on August 21, 2024

入ってる

from customtextview.

shoheiyokoyama avatar shoheiyokoyama commented on August 21, 2024

頑張れ

from customtextview.

sakatore avatar sakatore commented on August 21, 2024

yeah

from customtextview.

sakatore avatar sakatore commented on August 21, 2024
$ pod lib create SimpleCustomizableTextView
Cloning `https://github.com/CocoaPods/pod-template.git` into `SimpleCustomizableTextView`.
[!] /usr/local/bin/git clone https://github.com/CocoaPods/pod-template.git SimpleCustomizableTextView

fatal: destination path 'SimpleCustomizableTextView' already exists and is not an empty directory.

すでにある名前では作成できないってことですか?

from customtextview.

sakatore avatar sakatore commented on August 21, 2024

なんかやり方間違ってるみたいなんで、とりあえずここまでやったことをまとめます。

gemはインストールされていたので、podのインストールを行った。
podのversionを更新 (1.1.1)

指示「2. ライブラリ名と同じレポジトリを作る」に従って、SimpleCustomizableTextViewでプロジェクトを作った。

指示「3. 作ったレポジトリのディレクトリでpod lib create MyLibraryNameコマンドを叩く」を行うと、

[!] /usr/local/bin/git clone https://github.com/CocoaPods/pod-template.git SimpleCustomizableTextView
fatal: destination path 'SimpleCustomizableTextView' already exists and is not an empty directory.

っていうエラーが出たので?だった。
必要ではないと思ったが、リモートリポジトリを作ってpushしてから再度コマンドを叩いた。

やはり同じエラーが出た。既存のライブラリ名を使って作成することができないのだと思い、CustomizableTextViewでプロジェクトを作り、同様の操作を行った。

ただここで間違えてpod lib create SimpleCustomizableTextViewしたら、なぜか通った。

とりあえず進めてみるか… 質問を以下のように答えた。

What language do you want to use?? [ Swift / ObjC ]
> Swift                     

Would you like to include a demo application with your library? [ Yes / No ]
> Yes

Which testing frameworks will you use? [ Quick / None ]
> Quick

Would you like to do view based testing? [ Yes / No ]
> No

Running pod install on your new library.

3つ目と4つ目はよくわからなかった。

Xcodeでプロジェクトが立ち上がり、Swift3にconvertした。
エラーがめちゃくちゃ出た。もうわけわからないのでXcodeを閉じた。

どうやら、CustomizableTextViewフォルダの中に新しく、SimpleCustomizableTextViewフォルダができている。だから、ターミナルでSimpleCustomizableTextViewの上でpod lib createをやろうとすると同じ名前のフォルダがあるから上手くいかないことを理解した。その中にいろいろ入っている感じ。

_Pods.xcodeprojSimpleCustomizableTextView.xcodeprojを開いてみたがエラーはなかった。

from customtextview.

sakatore avatar sakatore commented on August 21, 2024

screenshot

from customtextview.

shoheiyokoyama avatar shoheiyokoyama commented on August 21, 2024

名前は変えた方がいいかもしれない。
リリースする前にバリデーションかけるんだけどその時にコケると思う。
エラー内容だけどtest frameworkのポイな。恐らくQuickの

今回UI系だからテストはやらなくていい
3, 4のはNoneにして

CustomizableTextViewでプロジェクト作ってるけど、それはやらなくていい

from customtextview.

sakatore avatar sakatore commented on August 21, 2024

pod lib create MyLibraryNameをどこでやればいいのかがわからないです。

from customtextview.

shoheiyokoyama avatar shoheiyokoyama commented on August 21, 2024

remoteディレクトリ配下

from customtextview.

sakatore avatar sakatore commented on August 21, 2024

別の話なんですけど、ライブラリをプロジェクトに組み込むこともやってみようと思って、Koyomiで試したんですけどいまいちうまくいかないです。

screenshot

screenshot

screenshot

screenshot

from customtextview.

shoheiyokoyama avatar shoheiyokoyama commented on August 21, 2024

ちゃんとxcworkspaceの方でやってる?

from customtextview.

sakatore avatar sakatore commented on August 21, 2024

はい

from customtextview.

sakatore avatar sakatore commented on August 21, 2024

remoteディレクトリ配下

をターミナルで開く方法がわかりません。

自分なりの解釈でやった結果、

1.リモートリポジトリSimpleCustomizableTextViewを作成

2.ローカルに空のフォルダSimpleCustomizableTextViewを作成

3.1を2にクローン

4.ローカルのパスSimpleCustomizableTextViewpod lib create SimpleCustomizableTextView

SimpleCustomizableTextViewフォルダの中にSimpleCustomizableTextViewができちゃうんで違うんですよね…

from customtextview.

shoheiyokoyama avatar shoheiyokoyama commented on August 21, 2024

あした

from customtextview.

shoheiyokoyama avatar shoheiyokoyama commented on August 21, 2024

ちなkoyomiのパス
2016-11-08 23 55 58

from customtextview.

shoheiyokoyama avatar shoheiyokoyama commented on August 21, 2024

2016-11-08 23 56 57

from customtextview.

shoheiyokoyama avatar shoheiyokoyama commented on August 21, 2024

2016-11-08 23 56 50

from customtextview.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.