File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,8 @@ def exists(env):
3030
3131
3232def generate (env ):
33- if env ["arch" ] == "universal" :
34- print ("Universal is currently not supported on iOS. Exiting." )
35- if env ["arch" ] not in ("arm64" , "x86_64" ):
36- print ("Only arm64, and x86_64 are supported on iOS. Exiting." )
37- env .Exit (1 )
33+ if env ["arch" ] not in ("universal" , "arm64" , "x86_64" ):
34+ raise ValueError ("Only universal, arm64, and x86_64 are supported on iOS. Exiting." )
3835
3936 if env ["ios_simulator" ]:
4037 sdk_name = "iphonesimulator"
Original file line number Diff line number Diff line change @@ -20,10 +20,8 @@ def exists(env):
2020
2121
2222def generate (env ):
23- if env ["arch" ] == "universal" :
24- print ("Universal is currently not supported on macOS. Exiting." )
25- if env ["arch" ] not in ("arm64" , "x86_64" ):
26- print ("Only arm64, and x86_64 are supported on macOS. Exiting." )
23+ if env ["arch" ] not in ("universal" , "arm64" , "x86_64" ):
24+ print ("Only universal, arm64, and x86_64 are supported on macOS. Exiting." )
2725 env .Exit (1 )
2826
2927 if sys .platform == "darwin" :
You can’t perform that action at this time.
0 commit comments