{"id":1146,"date":"2020-10-20T18:17:22","date_gmt":"2020-10-20T10:17:22","guid":{"rendered":"http:\/\/123.57.164.21\/?p=1146"},"modified":"2020-10-20T18:17:22","modified_gmt":"2020-10-20T10:17:22","slug":"xcode-%e4%b8%8a%e4%bc%a0-appstoreconnect-%e6%8a%a5%e9%94%99contains-unsupported-architectures-x86_64","status":"publish","type":"post","link":"https:\/\/92it.top\/?p=1146","title":{"rendered":"Xcode \u4e0a\u4f20 appstoreconnect \u62a5\u9519contains unsupported architectures &#8216;[x86_64]&#8217;"},"content":{"rendered":"\n<p>\u5f80AppStore\u4e0a\u63a8\u9001ipa\u6587\u4ef6\u65f6\uff0c\u6709\u65f6\u4f1a\u9047\u5230\u4e0b\u9762\u7684\u95ee\u9898\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"592\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2020\/10\/image-11-1024x592.png\" alt=\"\" class=\"wp-image-1147\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2020\/10\/image-11-1024x592.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2020\/10\/image-11-300x174.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2020\/10\/image-11-768x444.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2020\/10\/image-11-830x480.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2020\/10\/image-11-230x133.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2020\/10\/image-11-350x202.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2020\/10\/image-11-480x278.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2020\/10\/image-11.png 1148w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>\u53ef\u4ee5\u901a\u8fc7\u6dfb\u52a0build\u811a\u672c\u89e3\u51b3\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2020\/10\/image-12-1024x780.png\" alt=\"\" class=\"wp-image-1148\" width=\"564\" height=\"429\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2020\/10\/image-12-1024x780.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2020\/10\/image-12-300x229.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2020\/10\/image-12-768x585.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2020\/10\/image-12-830x632.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2020\/10\/image-12-230x175.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2020\/10\/image-12-350x267.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2020\/10\/image-12-480x366.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2020\/10\/image-12.png 1310w\" sizes=\"(max-width: 564px) 100vw, 564px\" \/><\/figure><\/div>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">APP_PATH=\"${TARGET_BUILD_DIR}\/${WRAPPER_NAME}\"\n\n# This script loops through the frameworks embedded in the application and\n# removes unused architectures.\nfind \"$APP_PATH\" -name '*.framework' -type d | while read -r FRAMEWORK\ndo\n    FRAMEWORK_EXECUTABLE_NAME=$(defaults read \"$FRAMEWORK\/Info.plist\" CFBundleExecutable)\n    FRAMEWORK_EXECUTABLE_PATH=\"$FRAMEWORK\/$FRAMEWORK_EXECUTABLE_NAME\"\n    echo \"Executable is $FRAMEWORK_EXECUTABLE_PATH\"\n\n    EXTRACTED_ARCHS=()\n\n    for ARCH in $ARCHS\n    do\n        echo \"Extracting $ARCH from $FRAMEWORK_EXECUTABLE_NAME\"\n        lipo -extract \"$ARCH\" \"$FRAMEWORK_EXECUTABLE_PATH\" -o \"$FRAMEWORK_EXECUTABLE_PATH-$ARCH\"\n        EXTRACTED_ARCHS+=(\"$FRAMEWORK_EXECUTABLE_PATH-$ARCH\")\n    done\n\n    echo \"Merging extracted architectures: ${ARCHS}\"\n    lipo -o \"$FRAMEWORK_EXECUTABLE_PATH-merged\" -create \"${EXTRACTED_ARCHS[@]}\"\n    rm \"${EXTRACTED_ARCHS[@]}\"\n\n    echo \"Replacing original executable with thinned version\"\n    rm \"$FRAMEWORK_EXECUTABLE_PATH\"\n    mv \"$FRAMEWORK_EXECUTABLE_PATH-merged\" \"$FRAMEWORK_EXECUTABLE_PATH\"\n\ndone<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5f80AppStore\u4e0a\u63a8\u9001ipa\u6587\u4ef6\u65f6\uff0c\u6709\u65f6\u4f1a\u9047\u5230\u4e0b\u9762\u7684\u95ee\u9898\u3002 \u53ef\u4ee5\u901a\u8fc7\u6dfb\u52a0build\u811a\u672c\u89e3\u51b3\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/1146"}],"collection":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1146"}],"version-history":[{"count":1,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/1146\/revisions"}],"predecessor-version":[{"id":1149,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/1146\/revisions\/1149"}],"wp:attachment":[{"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}