[{"data":1,"prerenderedAt":407},["ShallowReactive",2],{"project-39409816":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":28,"sentiment":29,"stance_mix":30,"scored_comments":35,"aspects":36,"strip":43,"post_text":46,"what":47,"said":65,"maker_in_thread":153,"shape":164,"grid":169,"attempts":369,"same_week":370,"maker_shows":38,"maker_hidden":399,"reader_version":400,"card":401},"39409816","macOS-cross-compiler","Compile binaries for macOS on Linux","title","Show HN: macOS-cross-compiler – Compile binaries for macOS on Linux","https:\u002F\u002Fgithub.com\u002Fshepherdjerred\u002Fmacos-cross-compiler","github.com","shepherdjerred",1708180916,2024,215,75,360,3515,11,"notable","dev_tools","cross compiler","cli",[21,24,25,26,27],"macos","linux","osxcross","codesign","curious",-0.067,{"positive":31,"neutral":32,"mixed":33,"critical":34},2,19,0,4,25,{"execution":37,"docs":39,"idea":40,"design":41,"performance":42},{"positive":33,"critical":38},1,{"positive":33,"critical":33},{"positive":31,"critical":31},{"positive":33,"critical":38},{"positive":33,"critical":33},[44,44,33,44,33,33,33,33,33,33,33,33,33,38,38,33,33,33,44,44,33,33,33,44,44,44,44,44,44,33,45,44,44,38,33,33,33,33,44,38],3,5,null,{"problem":48,"audience":46,"pricing":46,"motivation":46,"time_to_build":46,"stack":58,"openness":63,"stage":64,"team_size":64},{"value":49,"source":50,"evidence":51},"Building macOS binaries without a Mac","inferred",[52,54],{"id":53},"post",{"id":55,"by":56,"text":57},"39411679","weinzierl","That would solve the compilation problem, but there is more to create a working binary. For MacOS the official (and I believe only legal) way is to use a Mac with XCode installed…",[59],{"value":26,"source":60,"evidence":61},"commenter",[62],{"id":55,"by":56,"text":57},"open_source","unknown",{"praise":66,"objections":78,"requests":101,"questions":109,"alternatives":117},[67],{"value":68,"source":60,"evidence":69},"Useful for cross-compiling to macOS from Linux",[70,74],{"id":71,"by":72,"text":73},"39413437","dhash","This is really cool! I spent the time a couple years back to build a windows sysroot, but having a macOS one was on my mind for a while. Will definitley use",{"id":75,"by":76,"text":77},"39412824","miduil","Hm, need to give this* a try with NixOS cross compilation for macos. If I could pre-build nix packages for macOS developers on linux build hosts that'd be awesome. *the building…",[79,94],{"value":80,"source":60,"evidence":81},"Licensing of the macOS SDK may forbid redistribution on non-Apple hardware",[82,86,90],{"id":83,"by":84,"text":85},"39411414","my123","The problem with this is licensing: the macOS SDK license says that it's only to be used on an \"Apple-branded computer\". That said I wonder what Apple would do if this is used…",{"id":87,"by":88,"text":89},"39411243","sneak","Are they allowed to redistribute the macOS SDK? I assume that Apple’s EULA doesn’t permit that.",{"id":91,"by":92,"text":93},"39410658","mmastrac","Great to see all of this work brought together like this. I looked into some of these solutions earlier and the licensing status of doing this is pretty grey and likely violates…",{"value":95,"source":60,"evidence":96},"Ad-hoc signing untested; code signing needed on Apple Silicon",[97],{"id":98,"by":99,"text":100},"39411448","duped","> Code signing (but not notarizing) should be possible with this project, but it is untested Code signing is required for aarch64 macs unless they have SIP disabled, so this is…",[102],{"value":103,"source":60,"evidence":104},"Mention rcodesign for signing and notarization",[105],{"id":106,"by":107,"text":108},"39416347","infogulch","I feel like a reference to this should be somewhere in the macos-cross-compiler repo.",[110],{"value":111,"source":60,"evidence":112},"Can it be used in GitHub Actions or to compile iOS apps?",[113],{"id":114,"by":115,"text":116},"39430298","mariusbolik","Great Project. I have 2 questions: 1. Can this be used to run in a github action? 2. Can this be used to compile ios apps?",[118,125,132,139,146],{"value":119,"source":60,"evidence":120},"zig toolchain",[121],{"id":122,"by":123,"text":124},"39411238","wyldfire","Speaking of cross compilers - I was able to use the zig toolchain in order to cross compile for macos apple silicon, arm Linux, windows x64, windows arm and x86_64 Linux musl…",{"value":126,"source":60,"evidence":127},"cargo-zigbuild",[128],{"id":129,"by":130,"text":131},"39411417","vlovich123","Interestingly you can use zig within your Rust build to more easily cross-compile: https:\u002F\u002Fgithub.com\u002Frust-cross\u002Fcargo-zigbuild I’m curious what the blockers are for rustc to…",{"value":133,"source":60,"evidence":134},"Go cross compilation",[135],{"id":136,"by":137,"text":138},"39411884","hamdouni","I think the project can easily add Go to the list as cross compiling is built-in: ``` GOOS=darwin GOARCH=arm64 go build -o bin\u002Fapp-silicon-darwin app.go ```",{"value":140,"source":60,"evidence":141},"goreleaser-cross",[142],{"id":143,"by":144,"text":145},"39414725","wargo","I've been using goreleaser-cross for cross-compiling Go apps with cgo https:\u002F\u002Fgithub.com\u002Fgoreleaser\u002Fgoreleaser-cross",{"value":147,"source":60,"evidence":148},"rcodesign",[149],{"id":150,"by":151,"text":152},"39413271","roblabla","If you want to codesign and notarize your binary from linux, you can also use rcodesign[0]! I've been using it in production for about a year, and it's been working great so far.…",{"comments":34,"answered":44,"key":154},[155,158,161],{"id":156,"text":157},"39411589","That's actually exactly how this cross-compiler works for Rust!",{"id":159,"text":160},"39412481","Please feel free to open a PR replacing the image with one from a volunteer. I'm more than happy to make to make the switch and give credit to a proper artist if there's one…",{"id":162,"text":163},"39411656","I actually didn't notice that! I wanted to add some sort of image to the repository README, and it seemed like the simplest way to do so.",{"commenters":165,"max_depth":166,"maker_replies":34,"first_comment_mins":167,"lifespan_hours":168},54,9,83,52,[170,172,176,178,180,181,185,187,189,191,193,195,197,199,202,204,206,209,211,214,217,220,223,226,228,230,233,237,238,241,244,247,250,253,255,258,261,264,267,269,271,274,277,280,281,282,286,290,294,297,299,302,305,306,308,310,312,314,316,318,322,327,331,335,338,341,344,346,348,350,351,353,358,361,366],[150,33,44,171,151,33],"project\u002Fneutral\u002Fexecution",[173,33,33,174,175,33],"39415944","other\u002Fneutral\u002Fdocs","xyzzy_plugh",[106,33,44,177,107,33],"project\u002Fneutral\u002Fdocs",[122,38,33,179,123,33],"other\u002Fneutral\u002Fnone",[129,38,33,179,130,33],[182,38,33,183,184,33],"39411565","commenter\u002Fneutral\u002Fnone","adastra22",[55,38,44,186,56,33],"project\u002Fneutral\u002Fidea",[188,38,33,183,184,33],"39411771",[190,38,33,183,56,33],"39411859",[192,38,33,183,184,33],"39412147",[194,38,33,183,56,33],"39412413",[196,38,33,183,184,33],"39413042",[198,38,33,183,130,33],"39414431",[200,38,33,183,201,33],"39414511","pornel",[203,38,33,179,56,33],"39411587",[156,38,33,205,11,38],"maker\u002Fneutral\u002Fnone",[207,38,33,183,208,33],"39412319","jonathanhrl",[210,38,33,183,123,33],"39415263",[212,38,33,179,213,33],"39416369","Cloudef",[215,38,33,179,216,33],"39411715","menduz",[218,38,33,179,219,33],"39413142","DragonStrength",[221,38,33,174,222,33],"39415963","rockwotj",[224,38,33,183,225,33],"39413261","wredue",[227,38,33,183,213,33],"39416349",[91,31,38,229,92,33],"project\u002Fcritical\u002Fidea",[231,31,44,186,232,33],"39411028","o11c",[234,31,44,235,236,33],"39411890","project\u002Fneutral\u002Fnone","rfoo",[83,44,38,229,84,33],[239,44,33,179,240,33],"39411512","joe_hills",[242,44,33,179,243,33],"39411538","WesolyKubeczek",[245,44,33,179,246,33],"39411764","thfuran",[248,44,33,179,249,33],"39414147","chihuahua",[251,44,33,179,252,33],"39415167","anon-sre-srm",[254,44,33,179,246,33],"39433003",[256,44,44,235,257,33],"39413156","prmoustache",[259,44,44,186,260,33],"39413359","threeseed",[262,44,33,179,263,33],"39417144","pjmlp",[265,44,33,179,266,33],"39419954","karolist",[268,44,33,179,263,33],"39420405",[270,44,33,179,266,33],"39420599",[272,44,33,183,273,33],"39425206","apfsx",[275,44,33,179,276,33],"39413954","ericdfoley",[278,34,33,179,279,33],"39411618","jvolkman",[136,45,44,171,137,33],[143,45,44,171,144,33],[283,284,44,171,285,33],"39411071",6,"Alifatisk",[287,288,33,179,289,33],"39411617",7,"renewiltord",[291,292,44,186,293,33],"39411168",8,"deknos",[295,292,33,183,296,33],"39411334","schleck8",[298,292,44,235,184,33],"39411583",[300,292,33,179,301,33],"39412656","duskwuff",[303,292,44,171,304,33],"39411632","breather",[87,166,44,186,88,33],[98,307,44,171,99,33],10,[309,307,33,179,243,33],"39411526",[311,307,33,179,99,33],"39411768",[75,18,45,313,76,33],"project\u002Fpositive\u002Fidea",[71,315,45,313,72,33],12,[114,317,44,235,115,33],13,[319,320,33,179,321,33],"39414930",14,"nektro",[323,324,44,325,326,33],"39410757",15,"project\u002Fneutral\u002Fdesign","cmiller1",[328,324,38,329,330,33],"39410891","project\u002Fcritical\u002Fdesign","fao_",[332,324,33,333,334,33],"39410960","commenter\u002Fneutral\u002Fdesign","mistercow",[336,324,33,183,337,33],"39411247","Turing_Machine",[339,324,33,333,340,33],"39411827","devmor",[342,324,33,183,343,33],"39412056","koala_man",[345,324,33,183,337,33],"39414445",[347,324,33,333,334,33],"39412245",[349,324,33,333,340,33],"39412611",[159,324,33,333,11,38],[162,324,33,352,11,38],"maker\u002Fneutral\u002Fdesign",[354,355,44,356,357,33],"39411039",16,"project\u002Fneutral\u002Fperformance","xyst",[359,355,44,186,360,33],"39412815","brutal_chaos_",[362,363,38,364,365,33],"39416555",17,"project\u002Fcritical\u002Fexecution","jhatemyjob",[367,363,33,368,11,38],"39422254","maker\u002Fneutral\u002Fexecution",[],[371,375,380,385,390,394],{"id":372,"name":373,"points":374,"category":20},"39429370","htmz",1020,{"id":376,"name":377,"points":378,"category":379},"39377508","Gitlab Meeting Simulator",353,"productivity",{"id":381,"name":382,"points":383,"category":384},"39379339","Aldi Price Map",348,"data",{"id":386,"name":387,"points":388,"category":389},"39402142","Driftmania",276,"games",{"id":391,"name":392,"points":393,"category":384},"39428609","plprql",267,{"id":395,"name":396,"points":397,"category":398},"39425706","RAM Prices",241,"finance_crypto",false,"v2",{"id":402,"name":5,"line":6,"ai":399,"cat":20,"year":13,"points":14,"comments":15,"rec":28,"s":403,"top":18,"kw":404,"maker":11,"domain":10,"tier":19,"attempts":33,"strip":405,"url":9,"mix":406,"praise":68,"objection":80,"sub":21},39409816,-0.07,[21,24,25,26,27],"3303000000000110003300033333305331000031",[31,32,33,34],1793991084896]