Skip to content

Commit

Permalink
Fix if building for real device, there is no app (only ipa and xarchive)
Browse files Browse the repository at this point in the history
Do not even try to get default app path for simu if exporting archive
  • Loading branch information
e-marchand committed Sep 16, 2024
1 parent 6c0e0c1 commit 303c9cc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions Project/Sources/Classes/MobileProjectIOS.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,15 @@ Function build()->$result : Object
If ($result.app=Null:C1517)

var $pathname : 4D:C1709.Folder
$pathname:=Folder:C1567(This:C1470.input.path; fk platform path:K87:2).folder("build/Build/Products/Debug-iphonesimulator/"+This:C1470._schemeName+".app")

If ($pathname.exists)
If ($result.exportPath=Null:C1517)

$result.app:=$pathname.path
$pathname:=Folder:C1567(This:C1470.input.path; fk platform path:K87:2).folder("build/Build/Products/Debug-iphonesimulator/"+This:C1470._schemeName+".app")

If ($pathname.exists)

$result.app:=$pathname.path

End if
End if
End if

Expand Down
2 changes: 1 addition & 1 deletion Project/Sources/Methods/Xcode.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -1150,7 +1150,7 @@ Case of
End if

// remove some trailing data like -infoplist-subpath Info.plist
If (Position:C15(".app "; $Obj_result.app)>0) // XXX: last pos
If (Position:C15(".app "; String:C10($Obj_result.app))>0) // XXX: last pos

$Obj_result.app:=Substring:C12($Obj_result.app; 1; Position:C15(".app "; $Obj_result.app)+3)

Expand Down

0 comments on commit 303c9cc

Please sign in to comment.