Login  Register

Re: Help wanted to build on MacOS

Posted by Peter Hagen on Jun 08, 2022; 7:23am
URL: https://forum.librecad.org/Help-wanted-to-build-on-MacOS-tp5717273p5721781.html

No problem. I made the build, so I have the app folder, just not sure how to create the DMG.

When I run the script build-dmg.sh I get this error:

+ OSNAME[7]=Lion
+ OSNAME[8]=MountainLion
+ OSNAME[9]=Mavericks
+ OSNAME[10]=Yosemite
+ OSNAME[11]=ElCapitan
+ OSNAME[12]=Sierra
+ OSSDK[7]=macosx10.7
+ OSSDK[8]=macosx10.8
+ OSSDK[9]=macosx10.9
+ OSSDK[10]=macosx10.10
+ OSSDK[11]=macosx10.11
+ OSSDK[12]=macosx10.12
++ dirname ./build-dmg.sh
+ SCRIPTPATH=.
++ xcodebuild -showsdks
++ grep macosx
++ sed -e 's/.*macosx10\.//g'
2022-06-08 09:22:03.983 xcodebuild[3567:51827] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-06-08 09:22:03.983 xcodebuild[3567:51827] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
+ for v in '$(xcodebuild -showsdks | grep macosx | sed -e '\''s/.*macosx10\.//g'\'')'
++ seq 7 macOS
seq: invalid floating point argument: macOS
+ for v in '$(xcodebuild -showsdks | grep macosx | sed -e '\''s/.*macosx10\.//g'\'')'
++ seq 7 12.3
+ for t in '$(seq 7 $v)'
./build-dmg.sh: line 26: 12.3: syntax error: invalid arithmetic operator (error token is ".3”)

I guess it breaks on the Xcode version?