{"id":5888,"date":"2022-09-21T10:33:12","date_gmt":"2022-09-21T02:33:12","guid":{"rendered":"http:\/\/1989lifejourney.com\/2022\/09\/21\/ios-creating-a-framework\/"},"modified":"2022-09-21T10:33:12","modified_gmt":"2022-09-21T02:33:12","slug":"ios-creating-a-framework","status":"publish","type":"post","link":"https:\/\/1989lifejourney.com\/?p=5888","title":{"rendered":"IOS &#8211; creating a framework"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u8cc7\u6599\u7686\u4f86\u81eaRef,\u9019\u88cf\u50c5\u4f5c\u500b\u4eba\u7b46\u8a18\u6574\u7406<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ref: <a href=\"https:\/\/www.raywenderlich.com\/17753301-creating-a-framework-for-ios\" rel=\"nofollow\">https:\/\/www.raywenderlich.com\/17753301-creating-a-framework-for-ios<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">pack ios archive of framework<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">xcodebuild archive \\<br \/>-scheme TestFramework \\<br \/>-configuration Release \\<br \/>-destination &#8216;generic\/platform=iOS&#8217; \\<br \/>-archivePath &#8216;.\/build\/TestFramework.framework-iphoneos.xcarchive&#8217; \\<br \/>SKIP_INSTALL=NO \\<br \/>BUILD_LIBRARIES_FOR_DISTRIBUTION=YES<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">pack ios simulator archive of framework<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">xcodebuild archive \\<br \/>-scheme TestFramework \\<br \/>-configuration Release \\<br \/>-destination &#8216;generic\/platform=iOS Simulator&#8217; \\<br \/>-archivePath &#8216;.\/build\/TestFramework.framework-iphonesimulator.xcarchive&#8217; \\<br \/>SKIP_INSTALL=NO \\<br \/>BUILD_LIBRARIES_FOR_DISTRIBUTION=YES<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">pack macOS Catalyst archive of framework<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">xcodebuild archive \\<br \/>-scheme TestFramework \\<br \/>-configuration Release \\<br \/>-destination &#8216;platform=macOS,arch=x86_64,variant=Mac Catalyst&#8217; \\<br \/>-archivePath &#8216;.\/build\/TestFramework.framework-catalyst.xcarchive&#8217; \\<br \/>SKIP_INSTALL=NO \\<br \/>BUILD_LIBRARIES_FOR_DISTRIBUTION=YES<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Generating the XCFramework<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">xcodebuild -create-xcframework \\<br>-framework &#8216;.\/build\/TestFramework.framework-iphonesimulator.xcarchive\/Products\/Library\/Frameworks\/TestFramework.framework&#8217; \\<br>-framework &#8216;.\/build\/TestFramework.framework-iphoneos.xcarchive\/Products\/Library\/Frameworks\/TestFramework.framework&#8217; \\<br>-output &#8216;.\/build\/TestFramework.xcframework&#8217;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u4e0b\u8cc7\u6599\u7686\u4f86\u81eaRef,\u9019\u88cf\u50c5\u4f5c\u500b\u4eba\u7b46\u8a18\u6574\u7406 Ref: <a href=\"https:\/\/www.raywenderlich.co\" rel=\"nofollow\">https:\/\/www.raywenderlich.co<\/a> [&hellip;]<\/p>\n","protected":false},"author":139426785,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_postgate_lock_override":"inherit","_postgate_lock_mode":"inherit","_postgate_preview_mode":"inherit","_postgate_preview_limit":0,"_postgate_product_ids":[],"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_seo_schema_type":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_wpcom_ai_launchpad_first_post":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"{title}\n\n{excerpt}\n\n{url}","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_wpas_customize_per_network":false,"jetpack_post_was_ever_published":false},"categories":[37324612,55138170,1],"tags":[],"post_folder":[],"class_list":["post-5888","post","type-post","status-publish","format-standard","hentry","category-ios-development","category-technology-sharing","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paR5vw-1wY","jetpack-related-posts":[{"id":5758,"url":"https:\/\/1989lifejourney.com\/?p=5758","url_meta":{"origin":5888,"position":0},"title":"\u95dc\u65bc\u5957\u4ef6\u7ba1\u7406\u5de5\u5177(Package manager):","author":"Kevin","date":"22 7 \u6708, 2022","format":false,"excerpt":"\u95dc\u65bc\u5957\u4ef6\u7ba1\u7406\u5de5\u5177(Package manager): About RubyGems:RubyGems\u2026","rel":"","context":"\u5728\u300cTechnology sharing\u300d\u4e2d","block_context":{"text":"Technology sharing","link":"https:\/\/1989lifejourney.com\/?cat=55138170"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7606,"url":"https:\/\/1989lifejourney.com\/?p=7606","url_meta":{"origin":5888,"position":1},"title":"ChatGPT\u6e2c\u8a66_11\uff08\u8a62\u554fsendmail third party libraries for Swift)","author":"Kevin","date":"31 3 \u6708, 2023","format":false,"excerpt":"\u554fChatGPT: ios swift recommend third-party librarie\u2026","rel":"","context":"\u5728\u300cChatGPT\u300d\u4e2d","block_context":{"text":"ChatGPT","link":"https:\/\/1989lifejourney.com\/?cat=760577830"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/1989lifejourney.com\/wp-content\/uploads\/2023\/03\/e688aae59c96-2023-03-31-e4b88ae58d8810.21.33.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/1989lifejourney.com\/wp-content\/uploads\/2023\/03\/e688aae59c96-2023-03-31-e4b88ae58d8810.21.33.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/1989lifejourney.com\/wp-content\/uploads\/2023\/03\/e688aae59c96-2023-03-31-e4b88ae58d8810.21.33.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/1989lifejourney.com\/wp-content\/uploads\/2023\/03\/e688aae59c96-2023-03-31-e4b88ae58d8810.21.33.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/1989lifejourney.com\/wp-content\/uploads\/2023\/03\/e688aae59c96-2023-03-31-e4b88ae58d8810.21.33.png?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/1989lifejourney.com\/wp-content\/uploads\/2023\/03\/e688aae59c96-2023-03-31-e4b88ae58d8810.21.33.png?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":10817,"url":"https:\/\/1989lifejourney.com\/?p=10817","url_meta":{"origin":5888,"position":2},"title":"IOS bluetooth issue: The connection has timed out unexpectedly.","author":"Kevin","date":"19 8 \u6708, 2024","format":false,"excerpt":"iOS Bluetooth LE: Code=6 \"The connection has timed\u2026","rel":"","context":"\u5728\u300cIOS Development\u300d\u4e2d","block_context":{"text":"IOS Development","link":"https:\/\/1989lifejourney.com\/?cat=37324612"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/1989lifejourney.com\/wp-content\/uploads\/2024\/08\/%E6%88%AA%E5%9C%96-2024-08-19-%E4%B8%8A%E5%8D%8810.05.41.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/1989lifejourney.com\/wp-content\/uploads\/2024\/08\/%E6%88%AA%E5%9C%96-2024-08-19-%E4%B8%8A%E5%8D%8810.05.41.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/1989lifejourney.com\/wp-content\/uploads\/2024\/08\/%E6%88%AA%E5%9C%96-2024-08-19-%E4%B8%8A%E5%8D%8810.05.41.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/1989lifejourney.com\/wp-content\/uploads\/2024\/08\/%E6%88%AA%E5%9C%96-2024-08-19-%E4%B8%8A%E5%8D%8810.05.41.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/1989lifejourney.com\/wp-content\/uploads\/2024\/08\/%E6%88%AA%E5%9C%96-2024-08-19-%E4%B8%8A%E5%8D%8810.05.41.png?resize=1050%2C600&ssl=1 3x"},"classes":[]},{"id":8228,"url":"https:\/\/1989lifejourney.com\/?p=8228","url_meta":{"origin":5888,"position":3},"title":"Software team","author":"Kevin","date":"28 6 \u6708, 2023","format":false,"excerpt":"\u4e0d\u540c\u5de5\u7a0b\u5e2b\u968e\u5c64\u5b9a\u7fa9 Staff Engineer(or Principal Engineer or \u2026","rel":"","context":"\u5728\u300cTechnology sharing\u300d\u4e2d","block_context":{"text":"Technology sharing","link":"https:\/\/1989lifejourney.com\/?cat=55138170"},"img":{"alt_text":"","src":"https:\/\/mermaid.ink\/svg\/pako:eNqN00tvwjAMAOC_EuUM4s5hEs8xRsej2ynl4KWGZqQJMqkY6vjvS9NN2oMKcokbu58cKS65tCnyLt9oe5QZkGPPw8Qwv3oitht3BELWI5kph9KtWbt9x_pihpAyDbTFFpM232t89wHZw6HtEHLmazOjJGi2J_vmfzysa7QfgLkYaFukrKr9lViJPsgdmgupoRgrykM7_3IDEdlXpS9kRmJM1rj2RXImlr2fpy9iUXfLIjCwRaqv20tMnZ-Hz0W5IGWk2vvbjcxWGUQ61wWLquAjlhmmhcbOsgCt3KmzQq3A9-fjD7YsYzTKUmdaVNv5G18FPG7G4xvw5wZ8GPBJMz65bj802INgj5vt8Q2N3zfgo4BPm_HpdfuxwZ4FOyr9I6je8xcYXQef_oC8xXOkHFTqB6msmIS7DHNMeNeHKdAu4Ymp6qBwNj4ZybuOCmzxYp-Cw6GCLUHOuxvQB3-KqXKWonoyw4CePwECjDgq","width":350,"height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C_EuUM4s5hEs8xRsej2ynl4KWGZqQJMqkY6vjvS9NN2oMKcokbu58cKS65tCnyLt9oe5QZkGPPw8Qwv3oitht3BELWI5kph9KtWbt9x_pihpAyDbTFFpM232t89wHZw6HtEHLmazOjJGi2J_vmfzysa7QfgLkYaFukrKr9lViJPsgdmgupoRgrykM7_3IDEdlXpS9kRmJM1rj2RXImlr2fpy9iUXfLIjCwRaqv20tMnZ-Hz0W5IGWk2vvbjcxWGUQ61wWLquAjlhmmhcbOsgCt3KmzQq3A9-fjD7YsYzTKUmdaVNv5G18FPG7G4xvw5wZ8GPBJMz65bj802INgj5vt8Q2N3zfgo4BPm_HpdfuxwZ4FOyr9I6je8xcYXQef_oC8xXOkHFTqB6msmIS7DHNMeNeHKdAu4Ymp6qBwNj4ZybuOCmzxYp-Cw6GCLUHOuxvQB3-KqXKWonoyw4CePwECjDgq 2x, https:\/\/mermaid.ink\/svg\/pako:eNqN00tvwjAMAOC_EuUM4s5hEs8xRsej2ynl4KWGZqQJMqkY6vjvS9NN2oMKcokbu58cKS65tCnyLt9oe5QZkGPPw8Qwv3oitht3BELWI5kph9KtWbt9x_pihpAyDbTFFpM232t89wHZw6HtEHLmazOjJGi2J_vmfzysa7QfgLkYaFukrKr9lViJPsgdmgupoRgrykM7_3IDEdlXpS9kRmJM1rj2RXImlr2fpy9iUXfLIjCwRaqv20tMnZ-Hz0W5IGWk2vvbjcxWGUQ61wWLquAjlhmmhcbOsgCt3KmzQq3A9-fjD7YsYzTKUmdaVNv5G18FPG7G4xvw5wZ8GPBJMz65bj802INgj5vt8Q2N3zfgo4BPm_HpdfuxwZ4FOyr9I6je8xcYXQef_oC8xXOkHFTqB6msmIS7DHNMeNeHKdAu4Ymp6qBwNj4ZybuOCmzxYp-Cw6GCLUHOuxvQB3-KqXKWonoyw4CePwECjDgq 3x"},"classes":[]},{"id":7878,"url":"https:\/\/1989lifejourney.com\/?p=7878","url_meta":{"origin":5888,"position":4},"title":"ChatGPT\u6e2c\u8a66_23 (Write the comment which style is Apple&#8217;s documentation comment style)","author":"Kevin","date":"12 4 \u6708, 2023","format":false,"excerpt":"\u554f\u984c: Write the comment for below Swift functions wh\u2026","rel":"","context":"\u5728\u300cChatGPT\u300d\u4e2d","block_context":{"text":"ChatGPT","link":"https:\/\/1989lifejourney.com\/?cat=760577830"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4037,"url":"https:\/\/1989lifejourney.com\/?p=4037","url_meta":{"origin":5888,"position":5},"title":"Bluetooth Communication(IOS Core Bluetooth)","author":"Kevin","date":"8 1 \u6708, 2022","format":false,"excerpt":"IOS Core Bluetooth\u662fbased on BLE(Bluetooth low ener\u2026","rel":"","context":"\u5728\u300cIOS Development\u300d\u4e2d","block_context":{"text":"IOS Development","link":"https:\/\/1989lifejourney.com\/?cat=37324612"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/1989lifejourney.com\/index.php?rest_route=\/wp\/v2\/posts\/5888","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/1989lifejourney.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/1989lifejourney.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/1989lifejourney.com\/index.php?rest_route=\/wp\/v2\/users\/139426785"}],"replies":[{"embeddable":true,"href":"https:\/\/1989lifejourney.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5888"}],"version-history":[{"count":0,"href":"https:\/\/1989lifejourney.com\/index.php?rest_route=\/wp\/v2\/posts\/5888\/revisions"}],"wp:attachment":[{"href":"https:\/\/1989lifejourney.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5888"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/1989lifejourney.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5888"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/1989lifejourney.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5888"},{"taxonomy":"post_folder","embeddable":true,"href":"https:\/\/1989lifejourney.com\/index.php?rest_route=%2Fwp%2Fv2%2Fpost_folder&post=5888"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}