Quantcast
Channel: CNode:Node.js专业中文社区
Viewing all 14821 articles
Browse latest View live

npm install 报错!!

$
0
0

npm WARN deprecated coffee-script@1.9.3: CoffeeScript on NPM has moved to “coffeescript” (no hyphen) npm WARN deprecated graceful-fs@2.0.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js npm WARN deprecated node-force-domain@0.1.0: Use forcedomain instead. npm WARN deprecated pug@0.1.0: Please update to the latest version of pug, at time of writing that is pug@2.0.0-alpha6 npm WARN deprecated jade@1.11.0: Jade has been renamed to pug, please install the latest version of pug instead of jade loadDep:treema → network ▐ ╢███████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ npm ERR! Linux 4.13.0-37-generic npm ERR! argv “/usr/bin/node” “/usr/bin/npm” "install" npm ERR! node v6.11.4 npm ERR! npm v3.5.2

npm ERR! shasum check failed for /tmp/npm-6268-f89a6570/registry.npmjs.org/_40basicer/geoip-lite/-/geoip-lite-1.2.1.tgz npm ERR! Expected: d0078eddb05d214c6fb719bc94c115ee915bc18b npm ERR! Actual: e7550f780a88b85655826745dfa65d63b8ae1fb4 npm ERR! From: https://registry.npmjs.org/@basicer/geoip-lite/-/geoip-lite-1.2.1.tgz npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request: npm ERR! /codecombat/npm-debug.log


node内存溢出 之 懵逼了

$
0
0

最近看内存溢出相关的问题,有问题及现象如下,求解 图一如下 test1.jpg意料之中结果如下: result1.jpg

懵逼的是 图二如下: test2.jpg结果如下: result2.jpg

问题: 图二中的settimout是怎么影响图一的运行的

基于 react 的 json-schema 编辑器发布了

$
0
0

背景

JSON Schema 的用途越来越广泛,除了定义数据结构外,我们还可以使用 json-schema 验证数据格式和生成随机数据,但是编写复杂数据结构的 json-schema 是非常痛苦的事情。假设一个 100 字段的数据结构,如果用 json-schema 定义,可能需要 1000 个字段描述,工作量极大,效率非常低,所以我们团队开发了一款 json-schema 可视化编辑器提高大家的效率。

产品截图:

image.png

试用地址:http://yapi.demo.qunar.com/editor/

欢迎大家试用和 star

[成都]比特大陆招聘高级+前端工程师

$
0
0

职位要求

  1. 计算机相关专业本科及以上学历
  2. nodejs玩得666,熟悉最新的前端框架(react、ng、vue等)
  3. 基础扎实,对web标准化有深入见解,良好的编码风格以及抽象思维
  4. 项目经验丰富,能独当一面
  5. 善于沟通,思维灵活,为人正直,吃苦耐劳

加分项 1.有技术沉淀,喜欢看书写技术博客 2.优秀的逻辑思维能力、分析能力、沟通能力, 3.有强烈的责任感和良好的团队合作精神

职位优势

北京比特大陆科技有限公司 (www.bitmain.com),土豪公司,不差钱 坐落天府成都,美食美女,宜浪宜居 超甲写字楼OCG弹性作息时间并且很少加班六险一金+年底双薪+年终奖+体检+旅游+零食+应有尽有

联系

无论你是天价大腕儿还是前端新秀,都欢迎骚扰,来者不拒 如有兴趣,快砸简历到我邮箱281040844@qq.com

rpc分离web和api的公共模块

$
0
0

sequelize+express开发。

server: 目的是只想给client提供模型, crud还是在client端执行。2018-03-23 15-45-42屏幕截图.png

client: 得到的模型是[Function: cb], 并不能执行crud了。

2018-03-23 15-43-56屏幕截图.png

请问我client端如何得到能够执行crud的sequelize模型?

用最少的代码实现 co 框架

$
0
0

在 async 正式得到支持之后,co 框架也慢慢被淘汰了,不过作为学习用途,还是有所意义的。 下面的代码改良自 tslib,用最少的代码实现 co 框架:

/**
 * @param {GeneratorFunction} gen
 */
function co(gen) {
    return new Promise((resolve, reject) => {
        var fulfilled = (value) => {
            try {
                step(gen.next(value));
            } catch (e) {
                reject(e);
            }
        };
        var rejected = (value) => {
            try {
                step(gen.throw(value));
            } catch (e) {
                reject(e);
            }
        };
        var step = (result) => {
            result.done ? resolve(result.value)
                : Promise.resolve(result.value).then(fulfilled, rejected);
        };

        step((gen = gen()).next());
    });
}

经过许久酝酿,sfn 框架终于放出,欢迎提交意见

$
0
0

源代码:https://github.com/Hyurl/sfn文档:https://hyurl.github.io/sfn/简单 HTTP 控制器示例:

import { HttpController, route, HttpError } from "sfn";
import { User, NotFoundError } from "modelar";

export default class extends HttpController {
	constructor(req: Request, res: Response) {
        super(req, res);

        // your stuffs...
    }

    @route.get("/demo")
    index() {
        return "Hello, World!";
    }
	
	@route.get("/user/:id")
    getUser(req: Request) {
        return req.params.id; // =>e.g. 1
    }
	
	@route.get("/show-error")
    showError() {
        let well: boolean = false;
        let msg: string;
        // ...
        if (!well) {
            if (!msg)
                throw new HttpError(400); // => 400 bad request
            else
                throw new HttpError(400, msg); // => 400 with customized message
        }
    }
	
	@route.post("/login")
    async login(req: Request) {
        try {
            let email = req.body.email,
                password = req.body.password,
                user = await User.use(this.db).login({ email, password });

            req.session.uid = user.id;

            return this.success(user);
            // { success: true, code: 200, data: user }
        } catch (err) {
            return this.error(err, err instanceof NotFoundError ? 404 : 500);
            // { success: false, code: 404 | 500, error: err.message }
        }
    }
}

具体内容非常多,不便多说,可以查看文档进行了解。 这个框架目前为 beta 版本,某些功能尚未完成测试,因此希望大家一起下载来进行试用并上报错误,并提供修改建议。 哦,顺便提一下,TypeScript 是可选的。

为什么浏览器返回的是404?


UI/UX 设计师(实习生)--不需要会编程

$
0
0

视觉设计师 JD:

岗位职责: 负责参与产品( PC、移动端)的前端视觉用户研究、设计流行趋势分析,设定整体视觉风格和 VI 设计;

岗位要求:1、大三学艺术学生,美术、设计、艺术学等相关专业; 2、富有创造力和激情,能承受高强度的工作压力,具备良好的团队合作精神。3. 有在学校做过设计项目

会:PhotoShop

工作地点:远程 薪酬范围:150-250 元 /天 公司介绍:我们是做现实增强的公司 应聘须知:简历+设计作品案例,cnode2018@gmail.com

最后备注:我们希望能在视觉上和交互体验上做到 不错,设计风格及思路清晰且优秀,作品说话。

UI/UX 设计师(不需要会编程)

$
0
0

视觉设计师 JD:

岗位职责: 负责参与产品( PC、移动端)的前端视觉用户研究、设计流行趋势分析,设定整体视觉风格和 VI 设计;

岗位要求:1、本科及以上学历,美术、设计、艺术学等相关专业; 2、一年以上设计行业工作经验,有手持终端成功案例更佳; 3、熟悉用户研究常见的方法,具有交互设计理念及开发经验; 4、富有创造力和激情,能承受高强度的工作压力,具备良好的团队合作精神。

工作地点:远程 薪酬范围:15 万~25 万年薪 公司介绍:我们是做现实增强的公司 应聘须知:简历+设计作品案例,cnode2018@gmail.com

最后备注:我们希望能在视觉上和交互体验上做到 A+,设计风格及思路清晰且优秀,作品说话。

Vue视图分离,而数据模型能共享的加载器 :vue-template-merge-load 。

$
0
0

因业务需要,开发了一个款 vue template视图分离 而模型共享 ,基于webpack加载器,内部使用了vue官方的组件分析器。有相同需求的欢迎使用。小弟水平有限,只会一点,请大神赐教!

适用于:组件业务逻辑较复杂,分离组件成本高,组件间数据通信难以维护,html代码多,而vuex也解决不了根本问题的相关场景。

npm : https://www.npmjs.com/package/vue-template-merge-loadimage.png

React Native 初始化项目运行报错

$
0
0

通过React-Native-cli 初始化项目之后,运行 react-native run-ios命令报错,下面是RN的配置和报错信息。当前环境是Mac 10.13.2,XCode 版本是9.2。已开代理。希望大神们帮忙解答一下。急急急。。。

RN项目package.json如下

{
  "name": "RLReactNative",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "react": "^16.3.0-alpha.1",
    "react-native": "0.54.2"
  },
  "devDependencies": {
    "babel-jest": "22.4.3",
    "babel-preset-react-native": "4.0.0",
    "jest": "22.4.3",
    "react-test-renderer": "^16.3.0-alpha.1"
  },
  "jest": {
    "preset": "react-native"
  }
}

运行之后的报错信息

react-native run-ios

Scanning folders for symlinks in /Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules (14ms)
Found Xcode project RLReactNative.xcodeproj
CoreData: annotation:  Failed to load optimized model at path '/Applications/Xcode8.3.3.app/Contents/Applications/Instruments.app/Contents/Frameworks/InstrumentsPackaging.framework/Versions/A/Resources/XRPackageModel.momd/8.3 v2.omo'
We couldn't boot your defined simulator due to an already booted simulator. We are limited to one simulator launched at a time.
Launching iPhone 6 (iOS 10.3)...
Building using "xcodebuild -project RLReactNative.xcodeproj -configuration Debug -scheme RLReactNative -destination id=C5C16E85-9FF3-4E91-88BA-958FBA107BE2 -derivedDataPath build"
User defaults from command line:
    IDEDerivedDataPathOverride = /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build


=== BUILD TARGET yoga OF PROJECT React WITH CONFIGURATION Debug ===



Check dependencies




=== BUILD TARGET jsinspector OF PROJECT React WITH CONFIGURATION Debug ===




Check dependencies




=== BUILD TARGET privatedata OF PROJECT React WITH CONFIGURATION Debug ===




Check dependencies




=== BUILD TARGET double-conversion OF PROJECT React WITH CONFIGURATION Debug ===




Check dependencies




PhaseScriptExecution Install\ Third\ Party /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh
    cd /Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React
    export ACTION=build
    export AD_HOC_CODE_SIGNING_ALLOWED=YES
    export ALTERNATE_GROUP=staff
    export ALTERNATE_MODE=u+w,go-w,a+rX
    export ALTERNATE_OWNER=repeatlink
    export ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO
    export ALWAYS_SEARCH_USER_PATHS=NO
    export ALWAYS_USE_SEPARATE_HEADERMAPS=NO
    export APPLE_INTERNAL_DEVELOPER_DIR=/AppleInternal/Developer
    export APPLE_INTERNAL_DIR=/AppleInternal
    export APPLE_INTERNAL_DOCUMENTATION_DIR=/AppleInternal/Documentation
    export APPLE_INTERNAL_LIBRARY_DIR=/AppleInternal/Library
    export APPLE_INTERNAL_TOOLS=/AppleInternal/Developer/Tools
    export APPLICATION_EXTENSION_API_ONLY=NO
    export APPLY_RULES_IN_COPY_FILES=NO
    export ARCHS=x86_64
    export ARCHS_STANDARD="i386 x86_64"
    export ARCHS_STANDARD_32_64_BIT="i386 x86_64"
    export ARCHS_STANDARD_32_BIT=i386
    export ARCHS_STANDARD_64_BIT=x86_64
    export ARCHS_STANDARD_INCLUDING_64_BIT="i386 x86_64"
    export ARCHS_UNIVERSAL_IPHONE_OS="i386 x86_64"
    export AVAILABLE_PLATFORMS="appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator"
    export BITCODE_GENERATION_MODE=marker
    export BUILD_ACTIVE_RESOURCES_ONLY=YES
    export BUILD_COMPONENTS="headers build"
    export BUILD_DIR=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Products
    export BUILD_ROOT=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Products
    export BUILD_STYLE=
    export BUILD_VARIANTS=normal
    export BUILT_PRODUCTS_DIR=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Products/Debug-iphonesimulator
    export CACHE_ROOT=/var/folders/cl/cc66fw655h93k5039zx576gh0000gn/C/com.apple.DeveloperTools/8.3.2-8E2002/Xcode
    export CCHROOT=/var/folders/cl/cc66fw655h93k5039zx576gh0000gn/C/com.apple.DeveloperTools/8.3.2-8E2002/Xcode
    export CHMOD=/bin/chmod
    export CHOWN=/usr/sbin/chown
    export CLANG_ANALYZER_NONNULL=YES
    export CLANG_CXX_LANGUAGE_STANDARD=gnu++0x
    export CLANG_CXX_LIBRARY=libc++
    export CLANG_ENABLE_MODULES=YES
    export CLANG_ENABLE_MODULE_DEBUGGING=NO
    export CLANG_ENABLE_OBJC_ARC=YES
    export CLANG_MODULES_BUILD_SESSION_FILE=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/ModuleCache/Session.modulevalidation
    export CLANG_WARN_BOOL_CONVERSION=YES
    export CLANG_WARN_CONSTANT_CONVERSION=YES
    export CLANG_WARN_DIRECT_OBJC_ISA_USAGE=YES_ERROR
    export CLANG_WARN_DOCUMENTATION_COMMENTS=YES
    export CLANG_WARN_EMPTY_BODY=YES
    export CLANG_WARN_ENUM_CONVERSION=YES
    export CLANG_WARN_INFINITE_RECURSION=YES
    export CLANG_WARN_INT_CONVERSION=YES
    export CLANG_WARN_OBJC_ROOT_CLASS=YES_ERROR
    export CLANG_WARN_SUSPICIOUS_MOVE=YES
    export CLANG_WARN_SUSPICIOUS_MOVES=YES
    export CLANG_WARN_UNREACHABLE_CODE=YES
    export CLANG_WARN__DUPLICATE_METHOD_MATCH=YES
    export CLASS_FILE_DIR=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/JavaClasses
    export CLEAN_PRECOMPS=YES
    export CLONE_HEADERS=NO
    export CODESIGNING_FOLDER_PATH=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Products/Debug-iphonesimulator/libdouble-conversion.a
    export CODE_SIGNING_ALLOWED=NO
    export CODE_SIGNING_REQUIRED=YES
    export CODE_SIGN_CONTEXT_CLASS=XCiPhoneSimulatorCodeSignContext
    export CODE_SIGN_IDENTITY=-
    export COLOR_DIAGNOSTICS=NO
    export COMBINE_HIDPI_IMAGES=NO
    export COMMAND_MODE=legacy
    export COMPOSITE_SDK_DIRS=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/CompositeSDKs
    export COMPRESS_PNG_FILES=YES
    export CONFIGURATION=Debug
    export CONFIGURATION_BUILD_DIR=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Products/Debug-iphonesimulator
    export CONFIGURATION_TEMP_DIR=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator
    export COPYING_PRESERVES_HFS_DATA=NO
    export COPY_HEADERS_RUN_UNIFDEF=NO
    export COPY_PHASE_STRIP=NO
    export COPY_RESOURCES_FROM_STATIC_FRAMEWORKS=YES
    export CORRESPONDING_DEVICE_PLATFORM_DIR=/Applications/Xcode8.3.3.app/Contents/Developer/Platforms/iPhoneOS.platform
    export CORRESPONDING_DEVICE_PLATFORM_NAME=iphoneos
    export CORRESPONDING_DEVICE_SDK_DIR=/Applications/Xcode8.3.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk
    export CORRESPONDING_DEVICE_SDK_NAME=iphoneos10.3
    export CP=/bin/cp
    export CREATE_INFOPLIST_SECTION_IN_BINARY=NO
    export CURRENT_ARCH=x86_64
    export CURRENT_VARIANT=normal
    export DEAD_CODE_STRIPPING=YES
    export DEBUGGING_SYMBOLS=YES
    export DEBUG_INFORMATION_FORMAT=dwarf
    export DEFAULT_COMPILER=com.apple.compilers.llvm.clang.1_0
    export DEFAULT_KEXT_INSTALL_PATH=/System/Library/Extensions
    export DEFINES_MODULE=NO
    export DEPLOYMENT_LOCATION=NO
    export DEPLOYMENT_POSTPROCESSING=NO
    export DEPLOYMENT_TARGET_CLANG_ENV_NAME=IPHONEOS_DEPLOYMENT_TARGET
    export DEPLOYMENT_TARGET_CLANG_FLAG_NAME=mios-simulator-version-min
    export DEPLOYMENT_TARGET_CLANG_FLAG_PREFIX=-mios-simulator-version-min=
    export DEPLOYMENT_TARGET_SETTING_NAME=IPHONEOS_DEPLOYMENT_TARGET
    export DEPLOYMENT_TARGET_SUGGESTED_VALUES="8.0 8.1 8.2 8.3 8.4 9.0 9.1 9.2 9.3 10.0 10.1 10.2 10.3"
    export DERIVED_FILES_DIR=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/DerivedSources
    export DERIVED_FILE_DIR=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/DerivedSources
    export DERIVED_SOURCES_DIR=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/DerivedSources
    export DEVELOPER_APPLICATIONS_DIR=/Applications/Xcode8.3.3.app/Contents/Developer/Applications
    export DEVELOPER_BIN_DIR=/Applications/Xcode8.3.3.app/Contents/Developer/usr/bin
    export DEVELOPER_DIR=/Applications/Xcode8.3.3.app/Contents/Developer
    export DEVELOPER_FRAMEWORKS_DIR=/Applications/Xcode8.3.3.app/Contents/Developer/Library/Frameworks
    export DEVELOPER_FRAMEWORKS_DIR_QUOTED=/Applications/Xcode8.3.3.app/Contents/Developer/Library/Frameworks
    export DEVELOPER_LIBRARY_DIR=/Applications/Xcode8.3.3.app/Contents/Developer/Library
    export DEVELOPER_SDK_DIR=/Applications/Xcode8.3.3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
    export DEVELOPER_TOOLS_DIR=/Applications/Xcode8.3.3.app/Contents/Developer/Tools
    export DEVELOPER_USR_DIR=/Applications/Xcode8.3.3.app/Contents/Developer/usr
    export DEVELOPMENT_LANGUAGE=English
    export DEVELOPMENT_TEAM=V9WTTPBFK9
    export DO_HEADER_SCANNING_IN_JAM=NO
    export DSTROOT=/tmp/React.dst
    export DT_TOOLCHAIN_DIR=/Applications/Xcode8.3.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
    export DWARF_DSYM_FILE_NAME=libdouble-conversion.a.dSYM
    export DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT=NO
    export DWARF_DSYM_FOLDER_PATH=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Products/Debug-iphonesimulator
    export EFFECTIVE_PLATFORM_NAME=-iphonesimulator
    export EMBEDDED_CONTENT_CONTAINS_SWIFT=NO
    export EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE=NO
    export ENABLE_BITCODE=NO
    export ENABLE_DEFAULT_HEADER_SEARCH_PATHS=YES
    export ENABLE_HEADER_DEPENDENCIES=YES
    export ENABLE_ON_DEMAND_RESOURCES=NO
    export ENABLE_STRICT_OBJC_MSGSEND=YES
    export ENABLE_TESTABILITY=YES
    export ENTITLEMENTS_REQUIRED=YES
    export EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS=".DS_Store .svn .git .hg CVS"
    ex
port EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES="*.nib *.lproj *.framework *.gch *.xcode* *.xcassets (*) .DS_Store CVS .svn .git .hg *.pbproj *.pbxproj"
    export EXECUTABLE_EXTENSION=a
    export EXECUTABLE_NAME=libdouble-conversion.a
    export EXECUTABLE_PATH=libdouble-conversion.a
    export EXECUTABLE_PREFIX=lib
    export EXECUTABLE_SUFFIX=.a
    export EXPANDED_CODE_SIGN_IDENTITY=
    export EXPANDED_CODE_SIGN_IDENTITY_NAME=
    export EXPANDED_PROVISIONING_PROFILE=
    export FILE_LIST=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Objects/LinkFileList
    export FIXED_FILES_DIR=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/FixedFiles
    export FRAMEWORK_FLAG_PREFIX=-framework
    export FRAMEWORK_SEARCH_PATHS="/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Products/Debug-iphonesimulator "
    export FRAMEWORK_VERSION=A
    export FULL_PRODUCT_NAME=libdouble-conversion.a
    export GCC3_VERSION=3.3
    export GCC_C_LANGUAGE_STANDARD=gnu99
    export GCC_DYNAMIC_NO_PIC=NO
    export GCC_NO_COMMON_BLOCKS=YES
    export GCC_OBJC_LEGACY_DISPATCH=YES
    export GCC_OPTIMIZATION_LEVEL=0
    export GCC_PFE_FILE_C_DIALECTS="c objective-c c++ objective-c++"
    export GCC_PREPROCESSOR_DEFINITIONS="DEBUG=1 RCT_DEBUG=1 RCT_DEV=1 RCT_NSASSERT=1"
    export GCC_SYMBOLS_PRIVATE_EXTERN=NO
    export GCC_TREAT_WARNINGS_AS_ERRORS=NO
    export GCC_VERSION=com.apple.compilers.llvm.clang.1_0
    export GCC_VERSION_IDENTIFIER=com_apple_compilers_llvm_clang_1_0
    export GCC_WARN_64_TO_32_BIT_CONVERSION=YES
    export GCC_WARN_ABOUT_MISSING_PROTOTYPES=YES
    export GCC_WARN_ABOUT_RETURN_TYPE=YES_ERROR
    export GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED=YES
    export GCC_WARN_SHADOW=YES
    export GCC_WARN_UNDECLARED_SELECTOR=YES
    export GCC_WARN_UNINITIALIZED_AUTOS=YES_AGGRESSIVE
    export GCC_WARN_UNUSED_FUNCTION=YES
    export GCC_WARN_UNUSED_VARIABLE=YES
    export GENERATE_MASTER_OBJECT_FILE=NO
    export GENERATE_PKGINFO_FILE=NO
    export GENERATE_PROFILING_CODE=NO
    export GENERATE_TEXT_BASED_STUBS=NO
    export GID=20
    export GROUP=staff
    export HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT=YES
    export HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES=YES
    export HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS=YES
    export HEADERMAP_INCLUDES_PROJECT_HEADERS=YES
    export HEADERMAP_USES_FRAMEWORK_PREFIX_ENTRIES=YES
    export HEADERMAP_USES_VFS=NO
    export HEADER_SEARCH_PATHS="/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Products/Debug-iphonesimulator/include "
    export HIDE_BITCODE_SYMBOLS=YES
    export HOME=/Users/repeatlink
    export ICONV=/usr/bin/iconv
    export INFOPLIST_EXPAND_BUILD_SETTINGS=YES
    export INFOPLIST_OUTPUT_FORMAT=binary
    export INFOPLIST_PREPROCESS=NO
    export INLINE_PRIVATE_FRAMEWORKS=NO
    export INSTALLHDRS_COPY_PHASE=NO
    export INSTALLHDRS_SCRIPT_PHASE=NO
    export INSTALL_DIR=/tmp/React.dst/usr/local/lib
    export INSTALL_GROUP=staff
    export INSTALL_MODE_FLAG=u+w,go-w,a+rX
    export INSTALL_OWNER=repeatlink
    export INSTALL_PATH=/usr/local/lib
    export INSTALL_ROOT=/tmp/React.dst
    export IPHONEOS_DEPLOYMENT_TARGET=8.0
    export JAVAC_DEFAULT_FLAGS="-J-Xms64m -J-XX:NewSize=4M -J-Dfile.encoding=UTF8"
    export JAVA_APP_STUB=/System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub
    export JAVA_ARCHIVE_CLASSES=YES
    export JAVA_ARCHIVE_TYPE=JAR
    export JAVA_COMPILER=/usr/bin/javac
    export JAVA_FRAMEWORK_RESOURCES_DIRS=Resources
    export JAVA_JAR_FLAGS=cv
    export JAVA_SOURCE_SUBDIR=.
    export JAVA_USE_DEPENDENCIES=YES
    export JAVA_ZIP_FLAGS=-urg
    export JIKES_DEFAULT_FLAGS="+E +OLDCSO"
    export KEEP_PRIVATE_EXTERNS=NO
    export LD_DEPENDENCY_INFO_FILE=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Objects-normal/x86_64/double-conversion_dependency_info.dat
    export LD_GENERATE_MAP_FILE=NO
    export LD_MAP_FILE_PATH=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/double-conversion-LinkMap-normal-x86_64.txt
    export LD_NO_PIE=NO
    export LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER=YES
    export LEGACY_DEVELOPER_DIR=/Applications/Xcode8.3.3.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer
    export LEX=lex
    export LIBRARY_FLAG_NOSPACE=YES
    export LIBRARY_FLAG_PREFIX=-l
    export LIBRARY_KEXT_INSTALL_PATH=/Library/Extensions
    export LIBRARY_SEARCH_PATHS="/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Products/Debug-iphonesimulator "
    export LINKER_DISPLAYS_MANGLED_NAMES=NO
    export LINK_FILE_LIST_normal_x86_64=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Objects-normal/x86_64/double-conversion.LinkFileList
    export LINK_WITH_STANDARD_LIBRARIES=YES
    export LOCALIZABLE_CONTENT_DIR=
    export LOCAL_ADMIN_APPS_DIR=/Applications/Utilities
    export LOCAL_APPS_DIR=/Applications
    export LOCAL_DEVELOPER_DIR=/Library/Developer
    export LOCAL_LIBRARY_DIR=/Library
    export LOCROOT=
    export LOCSYMROOT=
    export MACH_O_TYPE=staticlib
    export MAC_OS_X_PRODUCT_BUILD_VERSION=17C88
    export MAC_OS_X_VERSION_ACTUAL=101302
    export MAC_OS_X_VERSION_MAJOR=101300
    export MAC_OS_X_VERSION_MINOR=1302
    export METAL_LIBRARY_FILE_BASE=default
    export METAL_LIBRARY_OUTPUT_DIR=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Products/Debug-iphonesimulator/
    export MODULE_CACHE_DIR=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/ModuleCache
    export MTL_ENABLE_DEBUG_INFO=YES
    export NATIVE_ARCH=i386
    export NATIVE_ARCH_32_BIT=i386
    export NATIVE_ARCH_64_BIT=x86_64
    export NATIVE_ARCH_ACTUAL=x86_64
    export NO_COMMON=YES
    export OBJC_ABI_VERSION=2
    export OBJECT_FILE_DIR=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Objects
    export OBJECT_FILE_DIR_normal=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Objects-normal
    export OBJROOT=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates
    export ONLY_ACTIVE_ARCH=YES
    export OS=MACOS
    export OSAC=/usr/bin/osacompile
    export OTHER_LDFLAGS=-ObjC
    export PACKAGE_TYPE=com.apple.package-type.static-library
    export PASCAL_STRINGS=YES
    export PATH="/Applications/Xcode8.3.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode8.3.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/bin:/Applications/Xcode8.3.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode8.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode8.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/local/bin:/Applications/Xcode8.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/bin:/Applications/Xcode8.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/local/bin:/Applications/Xcode8.3.3.app/Contents/Developer/usr/bin:/Applications/Xcode8.3.3.app/Contents/Developer/usr/local/bin:/Applications/Xcode8.3.3.app/Contents/Developer/Tools:/Users/repeatlink/Documents/software/flutter/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/bin:/Users/repeatlink/Documents/software/android-sdk-macosx/tools:/Users/repeatlink/Documents/software/android-sdk-macosx/platform-tools:/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/bin:/usr/bin:"bin:/usr/sbin:/sbin:/usr/local/git/bin
    export P
ATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES="/usr/include /usr/local/include /System/Library/Frameworks /System/Library/PrivateFrameworks /Applications/Xcode8.3.3.app/Contents/Developer/Headers /Applications/Xcode8.3.3.app/Contents/Developer/SDKs /Applications/Xcode8.3.3.app/Contents/Developer/Platforms"
    export PFE_FILE_C_DIALECTS=c++
    export PKGINFO_FILE_PATH=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/PkgInfo
    export PLATFORM_DEVELOPER_APPLICATIONS_DIR=/Applications/Xcode8.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications
    export PLATFORM_DEVELOPER_BIN_DIR=/Applications/Xcode8.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin
    export PLATFORM_DEVELOPER_LIBRARY_DIR=/Applications/Xcode8.3.3.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library
    export PLATFORM_DEVELOPER_SDK_DIR=/Applications/Xcode8.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs
    export PLATFORM_DEVELOPER_TOOLS_DIR=/Applications/Xcode8.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Tools
    export PLATFORM_DEVELOPER_USR_DIR=/Applications/Xcode8.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr
    export PLATFORM_DIR=/Applications/Xcode8.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform
    export PLATFORM_DISPLAY_NAME="iOS Simulator"
    export PLATFORM_NAME=iphonesimulator
    export PLATFORM_PREFERRED_ARCH=x86_64
    export PLIST_FILE_OUTPUT_FORMAT=binary
    export PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR=YES
    export PRECOMP_DESTINATION_DIR=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/PrefixHeaders
    export PRESERVE_DEAD_CODE_INITS_AND_TERMS=NO
    export PRIVATE_HEADERS_FOLDER_PATH=/usr/local/include/double-conversion
    export PRODUCT_MODULE_NAME=double_conversion
    export PRODUCT_NAME=double-conversion
    export PRODUCT_SETTINGS_PATH=
    export PRODUCT_TYPE=com.apple.product-type.library.static
    export PROFILING_CODE=NO
    export PROJECT=React
    export PROJECT_DERIVED_FILE_DIR=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/DerivedSources
    export PROJECT_DIR=/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React
    export PROJECT_FILE_PATH=/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/React.xcodeproj
    export PROJECT_NAME=React
    export PROJECT_TEMP_DIR=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build
    export PROJECT_TEMP_ROOT=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates
    export PUBLIC_HEADERS_FOLDER_PATH=/usr/local/include
    export RECURSIVE_SEARCH_PATHS_FOLLOW_SYMLINKS=YES
    export REMOVE_CVS_FROM_RESOURCES=YES
    export REMOVE_GIT_FROM_RESOURCES=YES
    export REMOVE_HEADERS_FROM_EMBEDDED_BUNDLES=YES
    export REMOVE_HG_FROM_RESOURCES=YES
    export REMOVE_SVN_FROM_RESOURCES=YES
    export REZ_COLLECTOR_DIR=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/ResourceManagerResources
    export REZ_EXECUTABLE=YES
    export REZ_OBJECTS_DIR=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/ResourceManagerResources/Objects
    export REZ_SEARCH_PATHS="/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Products/Debug-iphonesimulator "
    export SCAN_ALL_SOURCE_FILES_FOR_INCLUDES=NO
    export SCRIPT_INPUT_FILE_COUNT=0
    export SCRIPT_OUTPUT_FILE_COUNT=0
    export SDKROOT=/Applications/Xcode8.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk
    export SDK_DIR=/Applications/Xcode8.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk
    export SDK_DIR_iphonesimulator10_3=/Applications/Xcode8.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk
    export SDK_NAME=iphonesimulator10.3
    export SDK_NAMES=iphonesimulator10.3
    export SDK_PRODUCT_BUILD_VERSION=14E269
    export SDK_VERSION=10.3
    export SDK_VERSION_ACTUAL=100300
    export SDK_VERSION_MAJOR=100000
    export SDK_VERSION_MINOR=300
    export SED=/usr/bin/sed
    export SEPARATE_STRIP=YES
    export SEPARATE_SYMBOL_EDIT=NO
    export SET_DIR_MODE_OWNER_GROUP=YES
    export SET_FILE_MODE_OWNER_GROUP=NO
    export SHALLOW_BUNDLE=NO
    export SHARED_DERIVED_FILE_DIR=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Products/Debug-iphonesimulator/DerivedSources
    export SHARED_PRECOMPS_DIR=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/PrecompiledHeaders
    export SKIP_INSTALL=YES
    export SOURCE_ROOT=/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React
    export SRCROOT=/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React
    export STRINGS_FILE_OUTPUT_ENCODING=binary
    export STRIP_BITCODE_FROM_COPIED_FILES=NO
    export STRIP_INSTALLED_PRODUCT=YES
    export STRIP_STYLE=debugging
    export SUPPORTED_DEVICE_FAMILIES=1,2
    export SUPPORTED_PLATFORMS="iphonesimulator iphoneos"
    export SUPPORTS_TEXT_BASED_API=NO
    export SWIFT_PLATFORM_TARGET_PREFIX=ios
    export SYMROOT=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Products
    export SYSTEM_ADMIN_APPS_DIR=/Applications/Utilities
    export SYSTEM_APPS_DIR=/Applications
    export SYSTEM_CORE_SERVICES_DIR=/System/Library/CoreServices
    export SYSTEM_DEMOS_DIR=/Applications/Extras
    export SYSTEM_DEVELOPER_APPS_DIR=/Applications/Xcode8.3.3.app/Contents/Developer/Applications
    export SYSTEM_DEVELOPER_BIN_DIR=/Applications/Xcode8.3.3.app/Contents/Developer/usr/bin
    export SYSTEM_DEVELOPER_DEMOS_DIR="/Applications/Xcode8.3.3.app/Contents/Developer/Applications/Utilities/Built Examples"
    export SYSTEM_DEVELOPER_DIR=/Applications/Xcode8.3.3.app/Contents/Developer
    export SYSTEM_DEVELOPER_DOC_DIR="/Applications/Xcode8.3.3.app/Contents/Developer/ADC Reference Library"
    export SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR="/Applications/Xcode8.3.3.app/Contents/Developer/Applications/Graphics Tools"
    export SYSTEM_DEVELOPER_JAVA_TOOLS_DIR="/Applications/Xcode8.3.3.app/Contents/Developer/Applications/Java Tools"
    export SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR="/Applications/Xcode8.3.3.app/Contents/Developer/Applications/Performance Tools"
    export SYSTEM_DEVELOPER_RELEASENOTES_DIR="/Applications/Xcode8.3.3.app/Contents/Developer/ADC Reference Library/releasenotes"
    export SYSTEM_DEVELOPER_TOOLS=/Applications/Xcode8.3.3.app/Contents/Developer/Tools
    export SYSTEM_DEVELOPER_TOOLS_DOC_DIR="/Applications/Xcode8.3.3.app/Contents/Developer/ADC Reference Library/documentation/DeveloperTools"
    export SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR="/Applications/Xcode8.3.3.app/Contents/Developer/ADC Reference Library/releasenotes/DeveloperTools"
    export SYSTEM_DEVELOPER_USR_DIR=/Applications/Xcode8.3.3.app/Contents/Developer/usr
    export SYSTEM_DEVELOPER_UTILITIES_DIR=/Applications/Xcode8.3.3.app/Contents/Developer/Applications/Utilities
    export SYSTEM_DOCUMENTATION_DIR=/Library/Documentation
    export SYSTEM_KEXT_INSTALL_PATH=/System/Library/Extensions
    export SYSTEM_LIBRARY_DIR=/System/Library
    export TAPI_VERIFY_MODE=ErrorsOnly
    export TARGETED_DEVICE_FAMILY=1
    export TARGETNAME=double-conversion
    export TARGET_BUILD_DIR=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Products/Debug-iphonesimulator
    export TARGET_DEVICE_IDENTIFIER=C5C16E85-9FF3-4E91-88BA-958FBA107BE2
    export TARGET_DEVICE_MODEL=iPhone7,2
    export TARGET_DEVICE_OS_VERSION=10.3
    ex
port TARGET_NAME=double-conversion
    export TARGET_TEMP_DIR=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build
    export TEMP_DIR=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build
    export TEMP_FILES_DIR=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build
    export TEMP_FILE_DIR=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build
    export TEMP_ROOT=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates
    export TOOLCHAINS=com.apple.dt.toolchain.XcodeDefault
    export TOOLCHAIN_DIR=/Applications/Xcode8.3.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
    export TREAT_MISSING_BASELINES_AS_TEST_FAILURES=NO
    export UID=501
    export UNSTRIPPED_PRODUCT=NO
    export USER=repeatlink
    export USER_APPS_DIR=/Users/repeatlink/Applications
    export USER_LIBRARY_DIR=/Users/repeatlink/Library
    export USE_DYNAMIC_NO_PIC=YES
    export USE_HEADERMAP=YES
    export USE_HEADER_SYMLINKS=NO
    export VALIDATE_PRODUCT=NO
    export VALID_ARCHS="i386 x86_64"
    export VERBOSE_PBXCP=NO
    export VERSION_INFO_BUILDER=repeatlink
    export VERSION_INFO_FILE=double-conversion_vers.c
    export VERSION_INFO_STRING="\"@(#)PROGRAM:double-conversion  PROJECT:React-\""
    export WARNING_CFLAGS="-Wextra -Wall -Wno-semicolon-before-method-body"
    export WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES=NO
    export XCODE_APP_SUPPORT_DIR=/Applications/Xcode8.3.3.app/Contents/Developer/Library/Xcode
    export XCODE_PRODUCT_BUILD_VERSION=8E2002
    export XCODE_VERSION_ACTUAL=0832
    export XCODE_VERSION_MAJOR=0800
    export XCODE_VERSION_MINOR=0830
    export XPCSERVICES_FOLDER_PATH=/XPCServices
    export YACC=yacc
    export arch=x86_64
    export variant=normal
    /bin/sh -c /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh



=== BUILD TARGET third-party OF PROJECT React WITH CONFIGURATION Debug ===


Check dependencies



Write auxiliary files

write-file /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/third-party.build/third-party.hmap


=== BUILD TARGET jschelpers OF PROJECT React WITH CONFIGURATION Debug ===


Check dependencies



=== BUILD TARGET cxxreact OF PROJECT React WITH CONFIGURATION Debug ===



Check dependencies




=== BUILD TARGET React OF PROJECT React WITH CONFIGURATION Debug ===



Check dependencies



PhaseScriptExecution Start\ Packager /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Script-006B79A01A781F38006873D1.sh
    cd /Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React
    /bin/sh -c /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Script-006B79A01A781F38006873D1.sh



CompileC /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTCxxUtils.o CxxModule/RCTCxxUtils.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode8.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode8.3.3.app/Contents/Developer/usr/bin:/Users/repeatlink/Documents/software/flutter/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/bin:/Users/repeatlink/Documents/software/android-sdk-macosx/tools:/Users/repeatlink/Documents/software/android-sdk-macosx/platform-tools:/Library/Frameworks/Python.framework/Versions/3.5/bin:/"sr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin
    /Applications/Xcode8.3.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c++1y -stdlib=libc++ -fobjc-arc -fmodules -fmodules-cache-path=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wmissing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wduplicate-method-match -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wshadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -Wno-c++11-extensions -DDEBUG=1 -DRCT_DEBUG=1 -DRCT_DEV=1 -DRCT_NSASSERT=1 -DRCT_METRO_PORT=8081 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode8.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -mios-simulator-version-min=8.0 -g -Wno-sign-conversion -Winfinite-recursion -Wmove -fobjc-abi-version=2 -fobjc-legacy-dispatch -I/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/React.hmap -I/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Products/Debug-iphonesimulator/include -I/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/../third-party/boost_1_63_0 -I/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/../third-party/folly-2016.09.26.00 -I/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/../third-party/glog-0.3.4/src -I/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/DerivedSources/x86_64 -I/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/DerivedSources -Wextra -Wall -Wno-semicolon-before-method-body -F/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Products/Debug-iphonesimulator -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -MMD -MT dependencies -MF /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTCxxUtils.d --serialize-diagnostics /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTCxxUtils.dia -c /Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/CxxModule/RCTCxxUtils.mm -o /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTCxxUtils.o



CompileC /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTCxxModule.o CxxModule/RCTCxxModule.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode8.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode8.3.3.app/Contents/Developer/usr/bin:/Users/repeatlink/Documents/software/flutter/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/bin:/Users/repeatlink/Documents/software/android-sdk-macosx/tools:/Users/repeatlink/Documents/software/android-sdk-macosx/platform-tools:/Library/Frameworks/Python.framework/Versions/3.5/bin:/"sr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin
    /Applications/Xcode8.3.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c++1y -stdlib=libc++ -fobjc-arc -fmodules -fmodules-cache-path=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wmissing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wduplicate-method-match -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wshadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -Wno-c++11-extensions -DDEBUG=1 -DRCT_DEBUG=1 -DRCT_DEV=1 -DRCT_NSASSERT=1 -DRCT_METRO_PORT=8081 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode8.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -mios-simulator-version-min=8.0 -g -Wno-sign-conversion -Winfinite-recursion -Wmove -fobjc-abi-version=2 -fobjc-legacy-dispatch -I/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/React.hmap -I/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Products/Debug-iphonesimulator/include -I/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/../third-party/boost_1_63_0 -I/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/../third-party/folly-2016.09.26.00 -I/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/../third-party/glog-0.3.4/src -I/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/DerivedSources/x86_64 -I/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/DerivedSources -Wextra -Wall -Wno-semicolon-before-method-body -F/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Products/Debug-iphonesimulator -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -MMD -MT dependencies -MF /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTCxxModule.d --serialize-diagnostics /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTCxxModule.dia -c /Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/CxxModule/RCTCxxModule.mm -o /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTCxxModule.o

CompileC /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTFont.o Views/RCTFont.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode8.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode8.3.3.app/Contents/Developer/usr/bin:/Users/repeatlink/Documents/software/flutter/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/bin:/Users/repeatlink/Documents/software/android-sdk-macosx/tools:/Users/repeatlink/Documents/software/android-sdk-macosx/platform-tools:/Library/Frameworks/Python.framework/Versions/3.5/bin:/"sr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin
    /Applications/Xcode8.3.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c++1y -stdlib=libc++ -fobjc-arc -fmodules -fmodules-cache-path=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wmissing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wduplicate-method-match -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wshadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -Wno-c++11-extensions -DDEBUG=1 -DRCT_DEBUG=1 -DRCT_DEV=1 -DRCT_NSASSERT=1 -DRCT_METRO_PORT=8081 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode8.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -mios-simulator-version-min=8.0 -g -Wno-sign-conversion -Winfinite-recursion -Wmove -fobjc-abi-version=2 -fobjc-legacy-dispatch -I/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/React.hmap -I/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Products/Debug-iphonesimulator/include -I/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/../third-party/boost_1_63_0 -I/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/../third-party/folly-2016.09.26.00 -I/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/../third
-party/glog-0.3.4/src -I/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/DerivedSources/x86_64 -I/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/DerivedSources -Wextra -Wall -Wno-semicolon-before-method-body -F/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Products/Debug-iphonesimulator -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -MMD -MT dependencies -MF /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTFont.d --serialize-diagnostics /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTFont.dia -c /Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/Views/RCTFont.mm -o /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTFont.o
/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/Views/RCTFont.mm:76:27: warning: comparison of integers of different signs: 'NSInteger' (aka 'long') and 'NSUInteger' (aka 'unsigned long') [-Wsign-compare]
  for (NSInteger i = 0; i < fontNames.count; i++) {
                        ~ ^ ~~~~~~~~~~~~~~~
/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/Views/RCTFont.mm:110:39: error: unknown type name 'UIFontWeight'; did you mean 'RCTFontWeight'?
static inline BOOL CompareFontWeights(UIFontWeight firstWeight, UIFontWeight secondWeight) {
                                      ^~~~~~~~~~~~
                                      RCTFontWeight
/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/Views/RCTFont.mm:37:17: note: 'RCTFontWeight' declared here
typedef CGFloat RCTFontWeight;
                ^
/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/Views/RCTFont.mm:110:65: error: unknown type name 'UIFontWeight'; did you mean 'RCTFontWeight'?
static inline BOOL CompareFontWeights(UIFontWeight firstWeight, UIFontWeight secondWeight) {
                                                                ^~~~~~~~~~~~
                                                                RCTFontWeight
/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/Views/RCTFont.mm:37:17: note: 'RCTFontWeight' declared here
typedef CGFloat RCTFontWeight;
                ^
/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/Views/RCTFont.mm:118:56: error: unknown type name 'UIFontWeight'; did you mean 'RCTFontWeight'?
static NSString *FontWeightDescriptionFromUIFontWeight(UIFontWeight fontWeight)
                                                       ^~~~~~~~~~~~
                                                       RCTFontWeight
/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/Views/RCTFont.mm:37:17: note: 'RCTFontWeight' declared here
typedef CGFloat RCTFontWeight;
                ^
1 warning and 3 errors generated.

CompileC /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTSurfaceRootView.o Base/Surface/RCTSurfaceRootView.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode8.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode8.3.3.app/Contents/Developer/usr/bin:/Users/repeatlink/Documents/software/flutter/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/bin:/Users/repeatlink/Documents/software/android-sdk-macosx/tools:/Users/repeatlink/Documents/software/android-sdk-macosx/platform-tools:/Library/Frameworks/Python.framework/Versions/3.5/bin:/"sr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin
    /Applications/Xcode8.3.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c++1y -stdlib=libc++ -fobjc-arc -fmodules -fmodules-cache-path=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wmissing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wduplicate-method-match -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wshadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -Wno-c++11-extensions -DDEBUG=1 -DRCT_DEBUG=1 -DRCT_DEV=1 -DRCT_NSASSERT=1 -DRCT_METRO_PORT=8081 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode8.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -mios-simulator-version-min=8.0 -g -Wno-sign-conversion -Winfinite-recursion -Wmove -fobjc-abi-version=2 -fobjc-legacy-dispatch -I/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/React.hmap -I/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Products/Debug-iphonesimulator/include -I/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/../third-party/boost_1_63_0 -I/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/../third-party/folly-2016.09.26.00 -I/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/../third-party/glog-0.3.4/src -I/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/DerivedSources/x86_64 -I/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/DerivedSources -Wextra -Wall -Wno-semicolon-before-method-body -F/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Products/Debug-iphonesimulator -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -MMD -MT dependencies -MF /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTSurfaceRootView.d --serialize-diagnostics /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTSurfaceRootView.dia -c /Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/Base/Surface/RCTSurfaceRootView.mm -o /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTSurfaceRootView.o


CompileC /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTManagedPointer.o Base/RCTManagedPointer.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode8.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode8.3.3.app/Contents/Developer/usr/bin:/Users/repeatlink/Documents/software/flutter/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/bin:/Users/repeatlink/Documents/software/android-sdk-macosx/tools:/Users/repeatlink/Documents/software/android-sdk-macosx/platform-tools:/Library/Frameworks/Python.framework/Versions/3.5/bin:/"sr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin
    /Applications/Xcode8.3.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c++1y -stdlib=libc++ -fobjc-arc -fmodules -fmodules-cache-path=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wmissing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wduplicate-method-match -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wshadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -Wno-c++11-extensions -DDEBUG=1 -DRCT_DEBUG=1 -DRCT_DEV=1 -DRCT_NSASSERT=1 -DRCT_METRO_PORT=8081 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode8.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -mios-simulator-version-min=8.0 -g -Wno-sign-conversion -Winfinite-recursion -Wmove -fobjc-abi-version=2 -fobjc-legacy-dispatch -I/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/React.hmap -I/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Products/Debug-iphonesimulator/include -I/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/../third-party/boost_1_63_0 -I/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/../third-party/folly-2016.09.26.00 -I/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/../third-party/glog-0.3.4/src -I/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/DerivedSources/x86_64 -I/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/DerivedSources -Wextra -Wall -Wno-semicolon-before-method-body -F/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Products/Debug-iphonesimulator -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -MMD -MT dependencies -MF /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTManagedPointer.d --serialize-diagnostics /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTManagedPointer.dia -c /Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/Base/RCTManagedPointer.mm -o /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTManagedPointer.o

CompileC /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTWrapperViewController.o Views/RCTWrapperViewController.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode8.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode8.3.3.app/Contents/Developer/usr/bin:/Users/repeatlink/Documents/software/flutter/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/bin:/Users/repeatlink/Documents/software/android-sdk-macosx/tools:/Users/repeatlink/Documents/software/android-sdk-macosx/platform-tools:/Library/Frameworks/Python.framework/Versions/3.5/bin:/"sr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin
    /Applications/Xcode8.3.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wmissing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wshadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -DRCT_DEBUG=1 -DRCT_DEV=1 -DRCT_NSASSERT=1 -DRCT_METRO_PORT=8081 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode8.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=8.0 -g -Wno-sign-conversion -Winfinite-recursion -fobjc-abi-version=2 -fobjc-legacy-dispatch -I/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/React.hmap -I/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Products/Debug-iphonesimulator/include -I/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/../third-party/boost_1_63_0 -I/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/../third-party/folly-2016.09.26.00 -I/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/../third-party/glog-0.3.4/src -I/Users/repeatlink/Documents/code/vscode/RLReactN
ative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/DerivedSources/x86_64 -I/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/DerivedSources -Wextra -Wall -Wno-semicolon-before-method-body -F/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Products/Debug-iphonesimulator -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -MMD -MT dependencies -MF /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTWrapperViewController.d --serialize-diagnostics /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTWrapperViewController.dia -c /Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/Views/RCTWrapperViewController.m -o /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTWrapperViewController.o

CompileC /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTReloadCommand.o Base/RCTReloadCommand.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode8.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode8.3.3.app/Contents/Developer/usr/bin:/Users/repeatlink/Documents/software/flutter/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/bin:/Users/repeatlink/Documents/software/android-sdk-macosx/tools:/Users/repeatlink/Documents/software/android-sdk-macosx/platform-tools:/Library/Frameworks/Python.framework/Versions/3.5/bin:/"sr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin
    /Applications/Xcode8.3.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wmissing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wshadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -DRCT_DEBUG=1 -DRCT_DEV=1 -DRCT_NSASSERT=1 -DRCT_METRO_PORT=8081 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode8.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=8.0 -g -Wno-sign-conversion -Winfinite-recursion -fobjc-abi-version=2 -fobjc-legacy-dispatch -I/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/React.hmap -I/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Products/Debug-iphonesimulator/include -I/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/../third-party/boost_1_63_0 -I/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/../third-party/folly-2016.09.26.00 -I/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/../third-party/glog-0.3.4/src -I/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/DerivedSources/x86_64 -I/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/DerivedSources -Wextra -Wall -Wno-semicolon-before-method-body -F/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Products/Debug-iphonesimulator -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -MMD -MT dependencies -MF /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTReloadCommand.d --serialize-diagnostics /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTReloadCommand.dia -c /Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/Base/RCTReloadCommand.m -o /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTReloadCommand.o

CompileC /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/JSCTracing.o /Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/ReactCommon/cxxreact/JSCTracing.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode8.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode8.3.3.app/Contents/Developer/usr/bin:/Users/repeatlink/Documents/software/flutter/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/bin:/Users/repeatlink/Documents/software/android-sdk-macosx/tools:/Users/repeatlink/Documents/software/android-sdk-macosx/platform-tools:/Library/Frameworks/Python.framework/Versions/3.5/bin:/"sr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin
    /Applications/Xcode8.3.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c++1y -stdlib=libc++ -fmodules -fmodules-cache-path=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wmissing-prototypes -Werror=return-type -Wunreachable-code -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wshadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wnewline-eof -Wno-c++11-extensions -DDEBUG=1 -DRCT_DEBUG=1 -DRCT_DEV=1 -DRCT_NSASSERT=1 -DRCT_METRO_PORT=8081 -isysroot /Applicati
ons/Xcode8.3.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mios-simulator-version-min=8.0 -g -Wno-sign-conversion -Winfinite-recursion -Wmove -I/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/React.hmap -I/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Products/Debug-iphonesimulator/include -I/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/../third-party/boost_1_63_0 -I/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/../third-party/folly-2016.09.26.00 -I/Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/React/../third-party/glog-0.3.4/src -I/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/DerivedSources/x86_64 -I/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/DerivedSources -Wextra -Wall -Wno-semicolon-before-method-body -F/Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Products/Debug-iphonesimulator -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -MMD -MT dependencies -MF /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/JSCTracing.d --serialize-diagnostics /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/JSCTracing.dia -c /Users/repeatlink/Documents/code/vscode/RLReactNative/node_modules/react-native/ReactCommon/cxxreact/JSCTracing.cpp -o /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/JSCTracing.o


** BUILD FAILED **


The following build commands failed:

	CompileC /Users/repeatlink/Documents/code/vscode/RLReactNative/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTFont.o Views/RCTFont.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

Installing build/Build/Products/Debug-iphonesimulator/RLReactNative.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/RLReactNative.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

有个关于模块加载的疑问

$
0
0

深入浅出nodejs里说,“从缓存加载的优化策略是的二次引入时不需要路径分析,文件定位和编译执行过程”, 不用编译可以理解,但为什么不用文件定位,路径分析呢?我看了下缓存的路径都是文件的真实路径,比如"E:\projects\node\test\nodemodules\express\index.js", 第二次require(“expess”)如果不路径分析和文件定位,是如何直接找到这个路径的缓存的呢

求教C扩展中如何把对象真实的指针拿到?

$
0
0

写了两个C扩展的方法,一个是取出对象指针,一个是通过指针读出对象。但是读取出来的是经过拷贝过对象的指针。并且我重新malloc的数据也不能保存数据,由于C扩展的本质是动态库的关系,所以调用完成后会关闭动态调用就算没free也会释放掉。所以我想拿到真正node进程中这个对象的指针,有没有什么好的方法? 代码奉上,谢谢解答。

var addon = require('bindings')('addon.node')
var obj1 = {a:1,b:2,c:()=>{return a+b;}};
var objaddr1 = addon.getObjectAddr(obj1);
var obj2 = addon.getObjectByAddr(parseInt(objaddr1,16));
var objaddr2 = addon.getObjectAddr(obj2);
console.log(obj1,objaddr1)
console.log(obj2,objaddr2)
#include <nan.h>

void getObjectAddr(const Nan::FunctionCallbackInfo<v8::Value>& info) {
  if (info.Length() < 1) {
    Nan::ThrowTypeError("Wrong number of arguments");
    return;
  }
  v8::Local<v8::Object> obj = info[0]->ToObject();
  // v8::Local<v8::Object> *objP = (v8::Local<v8::Object>*)malloc(sizeof(v8::Local<v8::Object>));
  // *objP = obj;
  char objAddrStr[20]; //max 0x8000000000000000
  sprintf( objAddrStr,"%p",&obj);
    // sprintf( objAddrStr,"%p",objP);
  v8::Local<v8::String> v8ObjAddrStr = v8::String::NewFromUtf8(v8::Isolate::GetCurrent(), objAddrStr);
  info.GetReturnValue().Set(v8ObjAddrStr);
}

void getObjectByAddr(const Nan::FunctionCallbackInfo<v8::Value>& info) {
  if (info.Length() < 1) {
    Nan::ThrowTypeError("Wrong number of arguments");
    return;
  }
  int64_t addr = info[0]->IntegerValue();
  v8::Local<v8::Object> *objP;
  objP = (v8::Local<v8::Object> *)addr;
  info.GetReturnValue().Set(*objP);
}

void Init(v8::Local<v8::Object> exports) {
  exports->Set(Nan::New("getObjectAddr").ToLocalChecked(),
               Nan::New<v8::FunctionTemplate>(getObjectAddr)->GetFunction());
  exports->Set(Nan::New("getObjectByAddr").ToLocalChecked(),
               Nan::New<v8::FunctionTemplate>(getObjectByAddr)->GetFunction());
}

NODE_MODULE(typePointer, Init)

仓库地址(这里可以down下来直接测试):https://github.com/zy445566/type-pointer

ECMAScript语法提案 智能管道运算符(smart pipelines)

$
0
0

这是一个充满了函数式编程,艺术感和逼格的语法(合理利用可以有效劝退初学者和其他语言想转js的同学,减少js程序员竞争激烈程度。。。) 详情请看proposal-smart-pipelines

核心提案

中缀管道运算符... |> ...#词法 babel 7已经支持了中缀|>运算符(不过是另一个pipelines提案),#目前暂未被实现

|>运算符用来让层层嵌套的函数调用变得易读和易写

Math.sqrt(Math.sqrt(81)); // 3

81 |> Math.sqrt |> Math.sqrt; // 3

function div2(num) { return num / 2; }
// 像这样的调用不用管道运算符写起来会(十(分(难(受))));
1024
|> div2
|> div2
|> div2
|> div2
|> div2; // 32

通过以下例子可以很容易理解#这个符号的作用。

2 |> # + 2; // 4
'hello' |> # + ' world'; // 'hello world'

// 可以写在各种各样的语句中 
new Promise(resolve => resolve(123))
|> await #
|> new Foo(#)
|> bar(#)
|> baz(1, #, 2)
// |> yield #
|> # || throw new Error()
|> [#, # + 1, # + 2]
|> ({ arr: # }) // 像箭头函数返回对象时一样,这里也要用括号
|> #.arr
|> [...#]
|> (# => #.concat([1])); // 这里也必须使用括号

// console.log(
//   Math.max(
//     -(input - 3) * 2,
//     0
//   )
// );
input
|> # - 3
|> -#
|> # * 2
|> Math.max(#, 0)
|> console.log;

// # 是不可修改的
input |> (# = 1); // Error

通过|>#两个符号,我们可以轻易地将嵌套多层函数调用拍平

出于代码可读性的原因,以下用法是被禁止的

// 高阶函数使用管道语法容易在阅读代码时混淆含义
input |> object.method(); // Error
// object.method()(input);
// object.method(input);
// 此时应使用#符号
input |> object.method()(#); // ok

// 声明函数和类,在管道中,即使像下例一样简单的函数声明也会变得很难还原出原意
value
|> processing
|> function (x = #) { return x; }; // Error
// 原意如下:
// function (x = processing(value)) {
//   return x;
// }

// for/while/catch/with语句块同理
input
|> process
|> (x, y) => {
  for (const element of #)
    …
}
// (x, y) => {
//   for (const element of process(input))
//     …
// }

额外特性提案

以上是smart pipelines语法的核心提案部分,在此基础上还有一些额外的特性提案

Additional Feature BC (支持对象的构造器)

// '123'
// |> new Number(#);
'123'
|> new Number;

Additional Feature BA (支持异步函数)

async function foo(arg) { return arg; }

// 123
// |> await foo(#);
123
|> await foo;

Additional Feature BP (支持代码块)

它的表现类似于另一个提案 do-expression(事实上已经能够完全取代该语法了)。该代码块的最后一个表达式的值为代码块的值

123
|> {
  console.log(#); // 123
  # + 1;
}
|> #; // 124

Additional Feature PF (管道函数+>

邪能语法之一,让你能够在管道外的其他地方用上#

// [1, 2, 3].map(i => i * 2)
// [1, 2, 3].map(i => i |> # * 2)
[1, 2, 3].map(+> # * 2); // [2, 4, 6]

// 异步管道函数
const asyncPipelineFunction = async +>
|> await foo
|> bar;

Additional Feature TS (支持try-catch)

// let _1;
// try {
//   _1 = 1 / f(value);
// }
// catch (error) {
//   _1 = processError(error);
// }
// g (_1, 1);
value
|> f
|> {
  try |> 1 / #;
  catch |> processError;
}
|> g;

Additional Feature NP (多参数管道)

邪能语法之二…

function add(...args) { return args.reduce((a, b) => a + b, 0); }

(1, 2)
|> add(#, 4, ##); // 7

// ...会得到最后一个被使用的参数之后的所有参数
(1, 2, 4, 8)
|> add(##, ...); // 14

// 支持解构
(1, ...[2, 4, 8])
|> add(##, ...); // 14

学习egg写了个博客半成品

$
0
0
项目

地址:https://github.com/MUHM/goodluck采用egg.js作为程序主框架 使用sequelizejs作为orm框架 页面渲染采用nunjucks

因为react angular vue写不顺手,写不来;html、css更是菜的不行;所以前端部分都是东抄一点西窃一点:

package.json已包含mssql及mysql所需要的库,有强迫证的请自行修改,开发时连的mysql,执行单元测试时用的mssql,所以无论选择mysql或者mssql出现的问题应该不会很大

DEMO
单元测试
  • Statements : 90.4% ( 716/792 )
  • Branches : 78.87% ( 153/194 )
  • Functions : 89.63% ( 147/164 )
  • Lines : 90.4% ( 716/792 )
其它

因为一直做的是java,c#之类,所以在js写法上可能存在很大问题,本来学习的时候只是想写一个后台权限管理的demo,代码中存在写法不合理的地方请多指教 图就不上了

api.example.com 如何代理到 www.example.com/api/ 下?

自己动手制作一个cli工具

$
0
0

进入正题

1、首先新建一个文件夹dva-native-cli,然后执行npm init,当然你也可以自己创建package.json文件
2、然后新建bin目录,用来存放执行文件,template目录用来存放项目模板

最后目录树应该是这样

  • /bin
    • dva-native.js
  • /template
    • test
    • android
    • app
    • ios
    • app.json
    • index.js
    • jsconfig.json
    • package.json
    • README.md
  • packge.json
3、命令行工具,顾名思义,最重要的就是在终端输入的命令,以及如何让系统能够识别
  • 如何让npm识别命令? 先在package.json文件里面增加以下字段
"bin": {
    "dva-native": "./bin/dva-native.js"
  }

dva-native即为我们需要识别的命令,最好不要跟其他命令行工具重名该字段后面的值意思就是执行dva-native后需要运行的代码 值得一提的是,dva-native .js文件开头需要使用 ! /usr/bin/env node来指定使用node执行该文件

好了,最后在命令行下执行npm link,再输入dva-native就能被识别了

  • 如何获得命令行下输入的参数?

很幸运,node可以很轻易的实现,使用process.argv即可,但是我们一般使用process.argv.slice(2)前两个参数为node所在地址和正在执行文件的地址,对于本教程来说,就是dva-native.js,除此之外我们需要获得命令执行的位置,可以使用process.cwd()获得 然后我们就可以去实现 dva-native -vdva-native --helpdva-native new app等命令了,第一个读取package.json里面的name字段打印即可,第二个捕获–help参数根据自己需要打印提示信息就OK了。

4、示例如下:
if (argv[0] === "--help") {
     console.log("Use dva-native new project to create a new project!");
     return;
   }
   if (argv[0] === "-v") {
     console.log(require("../package.json").version);
     return;
   }
 }
 if (argv[0] !== "new") {
   console.warn(
     `You should use dva-native new to create you app, do not use dva-native ${
     argv[0]
     }`
   );
   return;
 }

最后一个就是最重要的了,执行这个命令后需要在命令执行所在的地址下新建app文件夹,并将template文件夹下的所有文件拷贝过去,但是对于一个友好的cli工具来说,如果用户需要新建的文件夹已存在,需应该示用户是否需要覆盖该文件夹

5、如何进行命令行交互呢?

node又提供了一个强有力的模块readline直接引入const readline = require("readline");当目标文件夹已存在时,执行以下代码

const terminal = readline.createInterface({
   input: process.stdin,
   output: process.stdout
 });
terminal.question(
     "Floder is already exits, do you want override it ? yes/no ",
     answer => {
       if (answer === "yes" || answer === "y") {
         resolve(true);
         terminal.close();
       } else {
         process.exit();
       }
     }
   );

当用户允许覆盖时,返回true,然后停止接受命令行的输入,否则退出进程

6、 如何拷贝整个文件夹?
function traverse(templatePath, targetPath) {
  try {
    const paths = fs.readdirSync(templatePath);
    paths.forEach(_path => {
      const _targetPath = path.resolve(targetPath, _path);
      const _templatePath = path.resolve(templatePath, _path);
      console.log("creating..." + _targetPath);
      if (!fs.statSync(_templatePath).isFile()) {
        fs.mkdirSync(_targetPath);
        traverse(_templatePath, _targetPath);
      } else {
        copyFile(_targetPath, _templatePath);
      }
    });
  } catch (error) {
    console.log(error);
    return false;
  }
  return true;
}
function copyFile(_targetPath, _templatePath) {
  fs.writeFileSync(_targetPath, fs.readFileSync(_templatePath), "utf-8");
  //fs.createReadStream(_targetPath).pipe(fs.createWriteStream(_templatePath));
}

由于后面我们需要执行npm intsall安装模块依赖,所以我们需要知道什么时候拷贝完成了,所以读取文件目录,写入文件均采用同步方式执行。使用readdirSync遍历目录,如果是目录,递归,否则进行拷贝操作,这里使用trycatch是为了捕获错误,有可能该文件夹下node并没用权限去进行操作,最后拷贝完成返回true

7、最后,如何执行上文提到的npm install呢?

提示用户自己输入吗?显然不是,这里我们借助const exec = require("child_process").exec;来完成命令执行

  exec(`cd ${projectName} && npm install`, err => {
    if (err) {
      console.log(err);
      process.exit();
    } else {
      console.log(
        `
Success! Created ${projectName} at ${cwdPath}.
Inside that directory, you can run several commands and more:
  * npm start: Starts you project.
  * npm test: Run test.
We suggest that you begin by typing:
  cd ${projectName}
  npm start
Happy hacking!`
      );
    }
  });

其实还可以使用swapn来完成,区别参考https://www.cnblogs.com/xiaoniuzai/p/6889164.html,上述的文件拷贝操作也可以借助swapn来完成,只不过mac和windows下的操作有点不一样我就没有采用了,具体使用参考https://github.com/dvajs/dva-cli/blob/master/src/install.js#L3

至此,一个简单的cli工具已编写完成,但是我们没有考虑生成途中用户使用^C退出后该如何进行处理

完整代码见github

node 版本升级遇到问题 系统词频: 20180103 组词数据: 20180103

实现基于房间的多人(大于2人)WebRTC 视频通话

$
0
0

概述

还记得半年前做了一个点对点的视频通话,但是多人(大于2人)视频通话一直没做,前几天一个朋友问到了这一方面的知识点,于是自己私下花了几天时间整理,刚好借这个契机重新折腾了一个多人视频会议。纯粹是开源下自己实现的思路,可能通话质量有待提高,各位有兴趣可以看看源代码

项目地址

演示地址

项目概述

  • 实现基于房间的多人(大于2人)webrtc 视频通话,在每两个对等端之间都建立一个连接,组成“全网状拓扑结构”

部署要求

  • 安装 redis (需要用到 redis 发布订阅)
  • 安装 node > 6.0.0

安装

Nginx 反向代理

线上环境修改 Room.vueWelcome.vue中的 const socket = io.connect('https://yourdomain');

如果部署到线上环境,可以配置 Nginx 反向代理,并且配置 SSL 证书(WebRTC 必须要使用安全协议,如:https & wss) 如下所示:

server {
        listen 443 ssl;

        ssl_certificate '你的 SSL 证书地址';
        ssl_certificate_key '你的 SSL 证书地址';
        
        ssl_session_cache shared:SSL:50m;
        ssl_session_timeout 1d;
        ssl_session_tickets off;

        server_name '你的域名';

        # 反向代理到 node 服务
        location / {
                proxy_pass    http://127.0.0.1:3001;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
                proxy_set_header Host $host;
        }
}

Supervisor 守护进程

node 服务由 Supervisor 启动并维护,设置参数如下:

[program:MutilWebRTC]
process_name=%(program_name)s
command=node /var/www/html/mutil-webrtc/server.js  # node 服务所在地址
autostart=true
autorestart=true
user=root
numprocs=1
redirect_stderr=false
stdout_logfile=/var/log/supervisor/MutilWebRTC.log

如果启动失败,可能需要执行:unlink /run/supervisor.sock

对应的需要修改 server.js 的 app.use(express.static('/var/www/html/mutil-webrtc/dist')); //客户端所在地址,修改成绝对路径,否则会报 404 错误

  • supervisord -c /etc/supervisor/supervisord.conf //起服务,注意 supervisor 配置文件所在目录
  • supervisord shutdown //关闭服务
  • supervisord reload //重启服务

说明

  • server.js 为消息分发的信令服务;
  • 如有任何疑问或者 bug,欢迎联系 root@laravue.org(最近邮箱有问题),或 247281377@qq.com
Viewing all 14821 articles
Browse latest View live