diff --git a/README.md b/README.md index 3b919c1fdc..8b49918970 100644 --- a/README.md +++ b/README.md @@ -141,7 +141,6 @@ If you have installed Chocolatey, you can complete these steps to set up JDK, Ap * For iOS development * [Latest Xcode][12] * [Xcode command-line tools][12] - * (Optional for working with third-party libraries) [64-bit Mono][Mono] installed via Homebrew * For Android development * [JDK 7][JDK 7] or a later stable official release * [Apache Ant 1.8][Apache Ant 1.8] or a later stable official release @@ -530,4 +529,3 @@ This software is licensed under the Apache 2.0 license, quoted ()(); } - private generateFrameworkMetadata(projectRoot: string, frameworkDir: string, frameworkName: string, umbrellaHeader: string): IFuture { - return (() => { - if (!this.$fs.exists("/usr/local/lib/libmonoboehm-2.0.1.dylib").wait()) { - this.$errors.failWithoutHelp("NativeScript needs Mono 3.10 or newer installed in /usr/local"); - } - - var yamlOut = path.join(frameworkDir, "Metadata"); - this.$fs.createDirectory(yamlOut).wait(); - - var tempHeader = path.join(yamlOut, "Metadata.h"); - this.$fs.writeFile(tempHeader, util.format("#import <%s/%s>", frameworkName, umbrellaHeader)).wait(); - - this.$logger.info("Generating metadata for %s.framework. This can take a minute.", frameworkName); - var sdkPath = this.$childProcess.exec("xcrun -sdk iphoneos --show-sdk-path").wait().trim(); - // MetadataGenerator P/Invokes libclang.dylib, so we need to instruct the Mach-O loader where to find it. - // Without this Mono will fail with a DllNotFoundException. - // Once the MetadataGenerator is rewritten in C++ and starts linking Clang statically, this will become superfluous. - var generatorExecOptions = { - env: { - DYLD_FALLBACK_LIBRARY_PATH: this.$childProcess.exec("xcode-select -p").wait().trim() + "/Toolchains/XcodeDefault.xctoolchain/usr/lib" - } - }; - this.$childProcess.exec(util.format('%s/Metadata/MetadataGenerator -s %s -u %s -o %s -cflags="-F%s"', projectRoot, sdkPath, tempHeader, yamlOut, frameworkDir), generatorExecOptions).wait(); - - var metadataFileName = frameworkName + ".yaml"; - this.$fs.copyFile(path.join(yamlOut, "Metadata-armv7", metadataFileName), path.join(projectRoot, "Metadata", "Metadata-armv7", metadataFileName)).wait(); - this.$fs.copyFile(path.join(yamlOut, "Metadata-arm64", metadataFileName), path.join(projectRoot, "Metadata", "Metadata-arm64", metadataFileName)).wait(); - - this.$fs.deleteDirectory(yamlOut).wait(); - }).future()(); - } - private replaceFileContent(file: string): IFuture { return (() => { var fileContent = this.$fs.readText(file).wait();