I am getting these errors (and more) when I run pod spec lint at the end. It appears as though it doesnât recognize Swift 3?
â ThreeRingControl (1.0.0)
- ERROR | xcodebuild: ThreeRingControl/ThreeRingControl/CircularGradient.swift:29:3: error: expected declaration
- ERROR | xcodebuild: ThreeRingControl/ThreeRingControl/CircularGradient.swift:29:14: error: consecutive declarations on a line must be separated by â;â
SOLVED:
This will solve it. Create a file called .swift-version with just one line:
Really awesome tutorial, thanks!
Here are three typos/suggestions for improvement:
Change from this:
You just added an entry for the framework in both Embedded Binaries and Linked Frameworks and Binaries.
To this:
You just added an entry for the framework in both Embedded Binaries and Linked Frameworks and Libraries.
Change from this:
To restore functionality to the app, you have to update the access control on two Phonercise classes.
To this:
To restore functionality to the app, you have to update the access control on two ThreeRingControl classes.
Change from this:
Select ThreeRingControl.xcodeproj in the project navigator and delete it.
Choose Remove Reference in the confirmation dialog, since youâll need to keep the files on disk to create the pod.
To this:
Select ThreeRingControl.xcodeproj in the project navigator and delete it, BUT ONLY REMOVE REFERENCE (since youâll need to keep the files on disk to create the pod.)
Hello! The big issue Iâm facing here is that Iâm not able to add the framework to the sample app as a bunch of files. It only adds the xcodeproj file and thatâs about it. I canât see the dropdown of framework files to edit it and develop both.
My framework depends on a cocoapod (AlamofireImage). At the step where Iâve included the framework inside the other project, I am getting an error that it canât find AlamofireImage. How do I solve that?
@mkatz I am getting lot of errors related to Swift 3.0 when i try to build the ThreeRingsControl framework. Is there any updated code which supports Phonercise Starter project. In GitHub also its updated 10 months back.
@subinrevi Be sure to use the download links and text within the tutorial itself. These have been updated to swift3. There is no official github hosting of this tutorial, so any links you found are not likely to be kept up to date (even my own copy).
Hi. Very nice tutorial. I did it with my own frameworks and project.
Unfortunately I am stuck with this error âNo such moduleâ while importing the classes of the framework.
How can I get rid of this?
@tfx - I was getting the same âNo such moduleâ error. I had placed the âpublicâ keyword in front of @IBInspectable instead of in front of the var below. Once I changed this, it worked. Hope this helps.
@oaleeapp
There is endless debate around the internet whether to check your pods or dependancies into git or not. If you check it in, then youâll have a stable record of the framework, can be assured youâll always be able to build, and be able to access it if you pull the repo onto another a machine. The downside is that when you update the framework it adds churn to your git logs and potential merge conflicts, and increases the size of your repo download, which can increase bandwidth usage and time to get your code changes.
I want to use âThreeRingControl.frameworkâ on another project, without pods, and without adding ThreeRingControl as a sub-project. It didnât work for me. This is what I did:
In settings for ThreeRingControl, set âSkip Installâ to âNOâ
From the Product menu, I selected Archive
Organizer pops up when itâs done, and I export the archive.
In the archive, I find âThreeRingControl.frameworkâ, and drag/drop it into another swift project into âLinked Frameworks and Librariesâ (select âCopy items if neededâ)
I can now âimport ThreeRingControlâ at top of a class in my new project, but if I try to use any of the classes from ThreeRingControl, theyâre not found. I get the error: âThreeRingView is unavailable. cannot find Swift declaration for this classâ
Thanks for this nice intro, very useful. I have just question: When we create a new âCocoa Touch Frameworkâ projet a file â*.hâ is created. What this for ?
Thanks un advanced.
The .h is a header file that is imported when you do @import YourFramework or <YourFramework/YourFramework.h>. You can add additional imports, such as other frameworks or header files if you include public Objective-C files.
Hello,
First I just want to say I have thanks for this tutorial.
Iâm having trouble doing âpod installâ on the on the app
after creating and modifying the podspec. The terminal returns
the following âŠ
[!] The ThreeRingControl pod failed to validate due to 1 error.
[!] The validator for Swift projects uses Swift 3.0 by default, if you are using a different version of swift you can use a .swift-version file to set the version for your Pod. For example to use Swift 2.3, run:
echo â2.3â > .swift-version:
Can you please advise how to correct the swift version? I know someone mentioned a .swift-Version file. Is that supposed to go into the same directory as the frameworks source files?
Thanks!
Thanks for the great tutorial.
My One simple question is that how we will manage to make updates in already published pod? Any good process? because we will not edit the Pod files directly.
Like ThreeRingControl, if i want to make some changes and publish it and update the pod where its actually using.