Commit Graph

378 Commits

Author SHA1 Message Date
josh adams
4dd12fe817 - Respect the flag for frameworks that don't want to link, to not actually link
#rb calvin.zhenf

[CL 28016727 by josh adams in ue5-main branch]
2023-09-19 18:16:50 -04:00
adam kinge
120bf5c5dd Fix iOS & tvOS not being able to set the BundleDisplayName (ie: the App name shown on the iPhone screen) when using Modern
#jira UE-193789
#rb josh.adams

[CL 27375198 by adam kinge in ue5-main branch]
2023-08-25 09:27:14 -04:00
josh adams
ff4cc0abee - Fixed plist generation for TVOS BP projects
#jira UE-193518
#rb Adam.kinge

[CL 27340722 by josh adams in ue5-main branch]
2023-08-24 10:22:47 -04:00
joe kirchoff
40521adeca Clang static analysis requires unity builds to be disabled
#rnx

[CL 27329915 by joe kirchoff in ue5-main branch]
2023-08-23 20:33:44 -04:00
josh adams
2995eb5c58 - Fixed codesigning of UnrealGame made with -createstub (will use dummy signing, which doesn't need a cert/provision pair, so will be signed the same way UnrealGame is signed without making a stub)
#jira UE-193672
#rb Calvin.zheng

[CL 27320434 by josh adams in ue5-main branch]
2023-08-23 17:05:44 -04:00
josh adams
ecce4e7680 - Brought back Legacy style temp keychain method because IPP cannot currently re-sign Frameworks embedded in a .app
#jira UE-193511
#rb axel.riffard

[CL 27279039 by josh adams in ue5-main branch]
2023-08-22 14:03:26 -04:00
joe kirchoff
22cdb0b04a UnrealBuildTool: Clean up IsBuildMachine checks
#rnx

[CL 27019595 by joe kirchoff in ue5-main branch]
2023-08-10 20:59:28 -04:00
Josh Adams
e065d919b5 - Fixed an issue in IOSPostBuildSync crashing with null pointer
#jira UE-191083
#rb zack.neyland

[CL 26956011 by Josh Adams in ue5-main branch]
2023-08-09 10:51:54 -04:00
bryan sefcik
ca12a1a2e0 Cleaned up the project generator API by passing a struct of commonly used arguments. This makes it easier for us to add/remove arguments.
#rb joe.kirchoff
#jira

[CL 26854215 by bryan sefcik in ue5-main branch]
2023-08-04 14:18:11 -04:00
calvin zheng
453260b02f UBT: Use ld-classic in order to avoid the new linker since it seems to have some bugs with our code base.
Remove redundant -lc++

#jira UE-191350
#rb Josh.Adams, Zack.Neyland

[CL 26852644 by calvin zheng in ue5-main branch]
2023-08-04 13:17:50 -04:00
adam kinge
43d42d6d2b Required Metal changes to support iOS Simulator.
- add a new shader platform (SP_METAL_SIM) to support iOS Simulator specific compilation requirements
- update iOS sim #define WITH_SIMULATOR to WITH_IOS_SIMULATOR

#jira UE-168571
#rb carl.lloyd

[CL 26850475 by adam kinge in ue5-main branch]
2023-08-04 12:28:20 -04:00
josh adams
fd539f221c - Enabled Modern Xcode mode by default for everyone!
- Fixed a naming issue (GameName vs ExeName) with stub creation for non-Development builds
#jira UE-191986
#rb calvin.zheng

[CL 26831842 by josh adams in ue5-main branch]
2023-08-03 18:45:15 -04:00
bryan sefcik
9a81ca5c26 Added support to have multiple architectures per platform in the VS sln/projects.
Updated the project generators to search the VS platform directory when HasVisualStudioSupport is called to find out whether a platform is supported. This fixes several issues where platforms were being generated like they were supported by the host machine but actually weren't.

#rb joe.kirchoff
#jira

[CL 26795017 by bryan sefcik in ue5-main branch]
2023-08-02 20:27:20 -04:00
josh adams
47ff3295d3 - Fixed remote building of IOS (from WIndows) with Modern Xcode
- Updated IPhonePackager.exe
#rb axel.riffard

[CL 26771256 by josh adams in ue5-main branch]
2023-08-02 10:19:02 -04:00
Josh Adams
574dc31ccb - Very very early support for UE running as a SwiftUI app:
- .ini settings for using SwiftUI main function
  - this will eanble #defines, etc, to enable some embedded style functionality in UE, where SwiftUI will trigger when to create the engine/view/etc
  - assume fully immersive mode, which uses CompositorServices to get drawables from SwiftUI land
  - Added some code to FMetalViewport for using Composotir layer/drawable instead of CoreAnimation layer/drawable
  - If the .ini setting is false, then it will use the original VIsionOS support which works generally in the simulator

- Also removed -lc++ commandline which was causing "duplicate -lc++" warning when building in recent Xcode

#rb adam.kinge

[CL 26769312 by Josh Adams in ue5-main branch]
2023-08-02 09:09:16 -04:00
Josh Adams
482a7d6493 - Removed static lib version checking because it's not as useful now, and cannot work with VisionOS libs
#fyi adam.kinge
#rb adam.kinge

[CL 26694629 by Josh Adams in ue5-main branch]
2023-07-28 22:24:55 -04:00
josh adams
7dc52372d3 - Couple of changes that got lost for .stub generation (modern was missing the Payload internal directory, and legacy needed to use targetname for the schemename, not project name)
#rb trivial
#rb axel.riffard (schemename part)

[CL 26623708 by josh adams in ue5-main branch]
2023-07-26 17:49:55 -04:00
Josh Adams
61ef979e51 - Made IOS and Mac BuildPlatforms classes come from AppleBuildPlatform so we can make UBT regen makefiles when xcode-select location changes
- Fixed XcodeBuild.sh to set iossimulator architecture the expected way
#rb adam.kinge

[CL 26623422 by Josh Adams in ue5-main branch]
2023-07-26 17:45:21 -04:00
josh adams
0e3d323296 - Added architecture to GetDestinationPlatform() so -destination param to xcodebuild can get simulators (and brought it over from 5.4)
- Added some logging to UseModernXcode so it is clear which mode is being used, and why
- Fixed stub creation in modern to use local dummy identity (no need for keychain unlocking), and moved files into Payload directory inside the stub
#jira UE-168571
#rb adam.kinge

[CL 26620618 by josh adams in ue5-main branch]
2023-07-26 16:41:36 -04:00
axel riffard
6ab2c49fcf Fix remote buil on iOS (scheme name)
#rb josh.adams
#jira UE-190418

[CL 26598834 by axel riffard in ue5-main branch]
2023-07-26 02:12:17 -04:00
adam kinge
e56126723a Additional UBT changes to support iOS Simulator:
- update Xcode build script to set correct arch when compiling within Xcode
 - set correct SDKRoot depending on sim vs device

#jira UE-168571

[CL 26597711 by adam kinge in ue5-main branch]
2023-07-26 01:01:43 -04:00
adam kinge
a674567ad9 Set the correct sdk to use for iOS device and iOS Simulator builds with updated Main logic
#jira UE-168571
#rb josh.adams

[CL 26576744 by adam kinge in ue5-main branch]
2023-07-25 12:01:42 -04:00
Josh Adams
c4275ae64e - Added -legacyxcode commandline handler for legacy PostbuildSync
#trivial

[CL 26566532 by Josh Adams in ue5-main branch]
2023-07-25 01:03:37 -04:00
Josh Adams
78bd7ddf97 - Fixed path to strip to add a missing slash
- Pass -legacyxcode along to the legacy PostBuildSync step to make sure it uses legacy when overriding the .ini setting
#jira UE-190517
#rb trivial

[CL 26555094 by Josh Adams in ue5-main branch]
2023-07-24 16:49:51 -04:00
Josh Adams
b0e29c9e75 - Added basic support for compiling Swift code (not general purpose yet, only the UESwift.swift file in this CL will work for now)
- Added an example SwiftUI view shown on VisionOS, using UIHostingViewController (must be created in Swift, not Obj-C)
- Refactored AppleToolChainSettings and children so AppleToolChain can have a single Swift compile function, and still target the proper toolchain (more cleaning up and pulling into AppleToolChain should now be possible)
#rb joe.kirchoff

[CL 26346396 by Josh Adams in ue5-main branch]
2023-06-30 12:08:50 -04:00