PhilipsHue / HueSDK

Philips Hue Software Development Kit
98 stars 39 forks source link

iOS version doesn't build. #2

Closed NeoTeo closed 7 years ago

NeoTeo commented 7 years ago

Xcode 9.0 (9A235), macOS 10.13 (17A405) The build ends with errors running the shell script 'Run Script'

rm: /Users/teo/source/Apple/iOS/Hue/HueSDK/HueQuickStartApps/HueQuickStartApp-iOS/Dependencies/HueSDK/phone/active/HueSDK.framework: No such file or directory
ln: /Users/teo/source/Apple/iOS/Hue/HueSDK/HueQuickStartApps/HueQuickStartApp-iOS/Dependencies/HueSDK/phone/active/HueSDK.framework: No such file or directory

When in fact the framework is in /Users/teo/source/Apple/iOS/Hue/HueSDK/HueQuickStartApps/HueQuickStartApp-iOS/Dependencies/HueSDK/phone/device/HueSDK.framework and /Users/teo/source/Apple/iOS/Hue/HueSDK/HueQuickStartApps/HueQuickStartApp-iOS/Dependencies/HueSDK/phone/simulator/HueSDK.framework

Tuikku commented 7 years ago

It fails on first build because it tries to delete file that is not there. You can add force flag to rm command to make it work.

rm -Rf "${BASE_DIR}/active/HueSDK.framework"

You can change it back after first successful build. edit: actually you also need to create the active directory because ln wont create it automatically

Tuikku commented 7 years ago

Created pull request with better way to handle it #3