Quantcast
Channel: Jive Syndication Feed
Viewing all articles
Browse latest Browse all 10881

Swift best practices - skip recursive HEADER_SEARCH_PATHS

$
0
0

I’ve been having a terrible time with the xCode6-beta2 Swift compiler’s auto-complete, when using objective-c headers and libs in .swift files. The application was compiling ok at build time, but after build, xCode would revert to popping an error for `unknown Type` for the objective-c classes.

I found that switching from a higher-level header search path with recursive search, to multiple specific paths without recursive search, resolved the issue.

$(PROJECT_DIR)/../../target/headers/$(BUILD_STYLE)-$(PLATFORM_NAME)/**

becomes

$(PROJECT_DIR)/../../target/headers/$(BUILD_STYLE)-$(PLATFORM_NAME)/com.sap.smp.client.ios/XScriptParser

$(PROJECT_DIR)/../../target/headers/$(BUILD_STYLE)-$(PLATFORM_NAME)/com.sap.smp.client.ios/ODataAPI

$(PROJECT_DIR)/../../target/headers/$(BUILD_STYLE)-$(PLATFORM_NAME)/com.sap.smp.client.ios/ODataOnline


usw.


Viewing all articles
Browse latest Browse all 10881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>