Coder Social home page Coder Social logo

Comments (16)

JakeLin avatar JakeLin commented on July 20, 2024

Did you follow https://github.com/JakeLin/SwiftWeather#how-to-build which step stops you? Did you open "SwiftWeather.xcworkspace"

from swiftlanguageweather.

kktam avatar kktam commented on July 20, 2024

Yes, I used the project instead of workspace (I focused on trying to build pod.framework). Now I can build and run the project now.

However I got the following error messages. Are these normal?

015-12-09 21:31:36.169 SwiftWeather[1120:63670] Failed to set (iconText) user defined inspected property on (SwiftWeather.ForecastView): [<SwiftWeather.ForecastView 0x7fa5e1e60770> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key iconText.
2015-12-09 21:31:36.170 SwiftWeather[1120:63670] Failed to set (temperatureText) user defined inspected property on (SwiftWeather.ForecastView): [<SwiftWeather.ForecastView 0x7fa5e1e60770> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key temperatureText.
2015-12-09 21:31:36.171 SwiftWeather[1120:63670] Failed to set (timeText) user defined inspected property on (SwiftWeather.ForecastView): [<SwiftWeather.ForecastView 0x7fa5e1e60770> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key timeText.
2015-12-09 21:31:36.171 SwiftWeather[1120:63670] Failed to set (iconText) user defined inspected property on (SwiftWeather.ForecastView): [<SwiftWeather.ForecastView 0x7fa5e1d1ae20> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key iconText.
2015-12-09 21:31:36.171 SwiftWeather[1120:63670] Failed to set (temperatureText) user defined inspected property on (SwiftWeather.ForecastView): [<SwiftWeather.ForecastView 0x7fa5e1d1ae20> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key temperatureText.
2015-12-09 21:31:36.171 SwiftWeather[1120:63670] Failed to set (timeText) user defined inspected property on (SwiftWeather.ForecastView): [<SwiftWeather.ForecastView 0x7fa5e1d1ae20> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key timeText.
2015-12-09 21:31:36.254 SwiftWeather[1120:63670] Failed to set (iconText) user defined inspected property on (SwiftWeather.ForecastView): [<SwiftWeather.ForecastView 0x7fa5e1d85610> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key iconText.
2015-12-09 21:31:36.254 SwiftWeather[1120:63670] Failed to set (temperatureText) user defined inspected property on (SwiftWeather.ForecastView): [<SwiftWeather.ForecastView 0x7fa5e1d85610> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key temperatureText.
2015-12-09 21:31:36.255 SwiftWeather[1120:63670] Failed to set (timeText) user defined inspected property on (SwiftWeather.ForecastView): [<SwiftWeather.ForecastView 0x7fa5e1d85610> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key timeText.
2015-12-09 21:31:36.255 SwiftWeather[1120:63670] Failed to set (iconText) user defined inspected property on (SwiftWeather.ForecastView): [<SwiftWeather.ForecastView 0x7fa5e1e62ee0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key iconText.
2015-12-09 21:31:36.255 SwiftWeather[1120:63670] Failed to set (temperatureText) user defined inspected property on (SwiftWeather.ForecastView): [<SwiftWeather.ForecastView 0x7fa5e1e62ee0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key temperatureText.
2015-12-09 21:31:36.349 SwiftWeather[1120:63670] Failed to set (timeText) user defined inspected property on (SwiftWeather.ForecastView): [<SwiftWeather.ForecastView 0x7fa5e1e62ee0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key timeText.
Error finding location: The operation couldn’t be completed. (kCLErrorDomain error 0.)

from swiftlanguageweather.

JakeLin avatar JakeLin commented on July 20, 2024

I don't think it is normal, I haven't seen this before. It looks like some
constraint issues.

Thanks
Jake

On 10 December 2015 at 16:43, Ka Tam [email protected] wrote:

Yes, I used the project instead of workspace (I focused on trying to build
pod.framework). Now I can build and run the project now.

However I got the following error messages. Are these normal?

015-12-09 21:31:36.169 SwiftWeather[1120:63670] Failed to set (iconText)
user defined inspected property on (SwiftWeather.ForecastView): [
setValue:forUndefinedKey:]: this class is not key value coding-compliant
for the key iconText.
2015-12-09 21:31:36.170 SwiftWeather[1120:63670] Failed to set
(temperatureText) user defined inspected property on
(SwiftWeather.ForecastView): [ setValue:forUndefinedKey:]: this class is
not key value coding-compliant for the key temperatureText.
2015-12-09 21:31:36.171 SwiftWeather[1120:63670] Failed to set (timeText)
user defined inspected property on (SwiftWeather.ForecastView): [
setValue:forUndefinedKey:]: this class is not key value coding-compliant
for the key timeText.
2015-12-09 21:31:36.171 SwiftWeather[1120:63670] Failed to set (iconText)
user defined inspected property on (SwiftWeather.ForecastView): [
setValue:forUndefinedKey:]: this class is not key value coding-compliant
for the key iconText.
2015-12-09 21:31:36.171 SwiftWeather[1120:63670] Failed to set
(temperatureText) user defined inspected property on
(SwiftWeather.ForecastView): [ setValue:forUndefinedKey:]: this class is
not key value coding-compliant for the key temperatureText.
2015-12-09 21:31:36.171 SwiftWeather[1120:63670] Failed to set (timeText)
user defined inspected property on (SwiftWeather.ForecastView): [
setValue:forUndefinedKey:]: this class is not key value coding-compliant
for the key timeText.
2015-12-09 21:31:36.254 SwiftWeather[1120:63670] Failed to set (iconText)
user defined inspected property on (SwiftWeather.ForecastView): [
setValue:forUndefinedKey:]: this class is not key value coding-compliant
for the key iconText.
2015-12-09 21:31:36.254 SwiftWeather[1120:63670] Failed to set
(temperatureText) user defined inspected property on
(SwiftWeather.ForecastView): [ setValue:forUndefinedKey:]: this class is
not key value coding-compliant for the key temperatureText.
2015-12-09 21:31:36.255 SwiftWeather[1120:63670] Failed to set (timeText)
user defined inspected property on (SwiftWeather.ForecastView): [
setValue:forUndefinedKey:]: this class is not key value coding-compliant
for the key timeText.
2015-12-09 21:31:36.255 SwiftWeather[1120:63670] Failed to set (iconText)
user defined inspected property on (SwiftWeather.ForecastView): [
setValue:forUndefinedKey:]: this class is not key value coding-compliant
for the key iconText.
2015-12-09 21:31:36.255 SwiftWeather[1120:63670] Failed to set
(temperatureText) user defined inspected property on
(SwiftWeather.ForecastView): [ setValue:forUndefinedKey:]: this class is
not key value coding-compliant for the key temperatureText.
2015-12-09 21:31:36.349 SwiftWeather[1120:63670] Failed to set (timeText)
user defined inspected property on (SwiftWeather.ForecastView): [
setValue:forUndefinedKey:]: this class is not key value coding-compliant
for the key timeText.
Error finding location: The operation couldn’t be completed.
(kCLErrorDomain error 0.)


Reply to this email directly or view it on GitHub
#36 (comment)
.

from swiftlanguageweather.

kktam avatar kktam commented on July 20, 2024

I tested this on XCode 7.0 building iOS9, as well as new XCode beta with new Swift 2 and got exactly the same result. The symptom is that most of the UI display, except the location in the middle of the page, and the main value. I am testing on iPhone 6 Simulator.

from swiftlanguageweather.

JakeLin avatar JakeLin commented on July 20, 2024

Thanks, when I was working on that from Xcode 7 beta to RTM, Apple kept changing the UIStackView layout in Interface Builder, I got some issues and fixed them from time to time, it may come up again.

from swiftlanguageweather.

 avatar commented on July 20, 2024

I added my APIKEY and did all the steps that it says to do but when I try to run it it comes up with the following error under "OpenWeatherMapService.swift"

No such module 'SwiftyJSON'

from swiftlanguageweather.

JakeLin avatar JakeLin commented on July 20, 2024

@jacobsgo thanks for reporting that issue. Did you run $ open "SwiftWeather.xcworkspace"?

from swiftlanguageweather.

 avatar commented on July 20, 2024

I did. I just restarted the installation process and it worked fine.
How do I change it to ˚F instead of ˚C?
Thanks!

from swiftlanguageweather.

 avatar commented on July 20, 2024

NVM it automatically does it. Thanks this app is amazing!

from swiftlanguageweather.

JakeLin avatar JakeLin commented on July 20, 2024

@jacobsgo If you set the location to US it will display ˚F, otherwise, it will display ˚C, you can check the logic of the code how to determine that.

from swiftlanguageweather.

 avatar commented on July 20, 2024

Ummm ok. How do you set it to 12 Hour Time instead of 24 hour

from swiftlanguageweather.

JakeLin avatar JakeLin commented on July 20, 2024

@jacobsgo not supported yet, the logic is in ForecastDateTime, can check the system locale to display whether 12 or 24 hour format. a PR will be more than welcome, thanks.

from swiftlanguageweather.

GuoZhiQiang avatar GuoZhiQiang commented on July 20, 2024

I have an error when I build the project: Cannot convert value of type 'Sting' to expected argument type 'StaticString'. This error appears in the code of XCTFail("\(message.stringValue)\n", file: location.file, line: location.line) which belongs to the NimbleXCTestHandler.swift file. Can you helpe me fix this error?

from swiftlanguageweather.

JakeLin avatar JakeLin commented on July 20, 2024

@GuoZhiQiang which Xcode version are you using? 7.3? There is an issue with some version of Nimble, can you have a look at Quick/Nimble#242?

I am using Xcode 7.3 and I can install the pods, here are the version numbers
Installing Nimble 4.0.1 (was 3.0.0)
Installing Quick 0.9.2 (was 0.8.0)
Installing SwiftyJSON 2.3.0 (was 2.3.0)

from swiftlanguageweather.

GuoZhiQiang avatar GuoZhiQiang commented on July 20, 2024

@JakeLin Thanks for your correct guide.

from swiftlanguageweather.

JakeLin avatar JakeLin commented on July 20, 2024

Close this issue now, 😉

from swiftlanguageweather.

Related Issues (20)

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.