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

how to compile pods_SwiftWeather.framework #36

Closed
kktam opened this issue Dec 9, 2015 · 16 comments
Closed

how to compile pods_SwiftWeather.framework #36

kktam opened this issue Dec 9, 2015 · 16 comments

Comments

@kktam
Copy link

kktam commented Dec 9, 2015

Can you provide some instructions on how to compile and import Pods_SwiftWeather.framework? pod install generated the pod project, but it does not appear to be able to build into any target in XCode 7.

@JakeLin
Copy link
Owner

JakeLin commented Dec 9, 2015

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

@kktam
Copy link
Author

kktam commented Dec 10, 2015

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.)

@JakeLin
Copy link
Owner

JakeLin commented Dec 10, 2015

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 notifications@github.com 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)
.

@kktam
Copy link
Author

kktam commented Dec 10, 2015

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.

@JakeLin
Copy link
Owner

JakeLin commented Dec 11, 2015

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.

@ghost
Copy link

ghost commented Mar 14, 2016

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'

@JakeLin
Copy link
Owner

JakeLin commented Mar 14, 2016

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

@ghost
Copy link

ghost commented Mar 15, 2016

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

@ghost
Copy link

ghost commented Mar 15, 2016

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

@JakeLin
Copy link
Owner

JakeLin commented Mar 15, 2016

@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.

@ghost
Copy link

ghost commented Mar 15, 2016

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

@JakeLin
Copy link
Owner

JakeLin commented Mar 15, 2016

@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.

@GuoZhiQiang
Copy link

GuoZhiQiang commented Apr 29, 2016

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?

@JakeLin
Copy link
Owner

JakeLin commented Apr 29, 2016

@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)

@GuoZhiQiang
Copy link

@JakeLin Thanks for your correct guide.

@JakeLin
Copy link
Owner

JakeLin commented May 3, 2016

Close this issue now, 😉

@JakeLin JakeLin closed this as completed May 3, 2016
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

3 participants