Skip to content

Commit 9b655f7

Browse files
committed
Fix: Invalid Bundle - A nested bundle contains simulator platform listed in CFBundleSupportedPlatforms Info.plist key.
1 parent 9d3db00 commit 9b655f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ getSupportedPlatforms xcodeScheme = do
128128

129129
getSupportedPlatforms' :: (MonadError (BuildError String) m) => XcodeScheme -> (ExitCode, String, String) -> m [String]
130130
getSupportedPlatforms' xcodeScheme (ExitSuccess, output, error) = case value of
131-
Just xs -> return $ reverse $ words xs
131+
Just xs -> return $ List.sort $ words xs
132132
Nothing -> throwError $ CreateBuildOptionSetsNoneSupportedPlatformsError ("scheme = " ++ error)
133133
where value = lookupBuildSettings "SUPPORTED_PLATFORMS" output
134134
getSupportedPlatforms' xcodeScheme (_, output, error) = throwError $ CreateBuildOptionSetsNoneSupportedPlatformsError (debugInfo xcodeScheme ++ " , " ++ error)

0 commit comments

Comments
 (0)