From caa06677da81fd74e28394a6885716e05e3fa2e9 Mon Sep 17 00:00:00 2001 From: Hermes Date: Sat, 8 Aug 2026 16:59:22 +0000 Subject: [PATCH] Initial iOS Hello World app with Gitea Actions build workflow --- .gitea/workflows/build.yml | 81 ++++++ .gitignore | 10 + .../AppIcon.appiconset/Contents.json | 13 + HelloWorld/Assets.xcassets/Contents.json | 6 + HelloWorld/ContentView.swift | 25 ++ HelloWorld/HelloWorldApp.swift | 15 ++ HelloWorld/Info.plist | 36 +++ iOS-hello_world.xcodeproj/project.pbxproj | 253 ++++++++++++++++++ .../xcschemes/iOS-hello_world.xcscheme | 78 ++++++ 9 files changed, 517 insertions(+) create mode 100644 .gitea/workflows/build.yml create mode 100644 .gitignore create mode 100644 HelloWorld/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 HelloWorld/Assets.xcassets/Contents.json create mode 100644 HelloWorld/ContentView.swift create mode 100644 HelloWorld/HelloWorldApp.swift create mode 100644 HelloWorld/Info.plist create mode 100644 iOS-hello_world.xcodeproj/project.pbxproj create mode 100644 iOS-hello_world.xcodeproj/xcshareddata/xcschemes/iOS-hello_world.xcscheme diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..7c622ec --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,81 @@ +name: Build iOS App + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + build: + name: Build .ipa and publish source + runs-on: macos + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Select Xcode + run: | + sudo xcode-select -s /Applications/Xcode.app/Contents/Developer + xcodebuild -version + + - name: Build unsigned .ipa + run: | + # Build the app bundle (no signing — SideStore signs on-device) + xcodebuild \ + -project iOS-hello_world.xcodeproj \ + -scheme iOS-hello_world \ + -configuration Release \ + -sdk iphoneos \ + -derivedDataPath build \ + CODE_SIGNING_ALLOWED=NO \ + CODE_SIGNING_REQUIRED=NO \ + CODE_SIGN_IDENTITY="" \ + build + + # Locate the .app bundle + APP_PATH=$(find build/Build/Products -name "*.app" -type d | head -1) + echo "App bundle: $APP_PATH" + + # Package into an .ipa (Payload/App.app structure) + mkdir -p dist/Payload + cp -R "$APP_PATH" dist/Payload/ + cd dist + zip -r ../iOS-hello_world.ipa Payload + cd .. + ls -la iOS-hello_world.ipa + + - name: Generate source.json + run: | + VERSION="1.0" + SIZE=$(stat -f%z iOS-hello_world.ipa) + DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") + cat > source.json < + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + Hello World + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchScreen + + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + + + diff --git a/iOS-hello_world.xcodeproj/project.pbxproj b/iOS-hello_world.xcodeproj/project.pbxproj new file mode 100644 index 0000000..53c40dd --- /dev/null +++ b/iOS-hello_world.xcodeproj/project.pbxproj @@ -0,0 +1,253 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 77; + objects = { + +/* Begin PBXFileSystemSynchronizedRootGroup section */ + AB1234567890ABCDEF000001 /* HelloWorld */ = { + isa = PBXFileSystemSynchronizedRootGroup; + explicitFileTypes = { + }; + explicitFolders = ( + ); + path = HelloWorld; + sourceTree = ""; + }; +/* End PBXFileSystemSynchronizedRootGroup section */ + +/* Begin PBXGroup section */ + AB1234567890ABCDEF000002 = { + isa = PBXGroup; + children = ( + AB1234567890ABCDEF000001 /* HelloWorld */, + AB1234567890ABCDEF000003 /* Products */, + ); + sourceTree = ""; + }; + AB1234567890ABCDEF000003 /* Products */ = { + isa = PBXGroup; + children = ( + AB1234567890ABCDEF000004 /* iOS-hello_world.app */, + ); + name = Products; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + AB1234567890ABCDEF000005 /* iOS-hello_world */ = { + isa = PBXNativeTarget; + buildConfigurationList = AB1234567890ABCDEF000006 /* Build configuration list for PBXNativeTarget "iOS-hello_world" */; + buildPhases = ( + AB1234567890ABCDEF000007 /* Sources */, + AB1234567890ABCDEF000008 /* Frameworks */, + AB1234567890ABCDEF000009 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + fileSystemSynchronizedGroups = ( + AB1234567890ABCDEF000001 /* HelloWorld */, + ); + name = "iOS-hello_world"; + packageProductDependencies = ( + ); + productName = "iOS-hello_world"; + productReference = AB1234567890ABCDEF000004 /* iOS-hello_world.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + AB1234567890ABCDEF00000A /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1600; + LastUpgradeCheck = 1600; + TargetAttributes = { + AB1234567890ABCDEF000005 = { + CreatedOnToolsVersion = 16.0; + }; + }; + }; + buildConfigurationList = AB1234567890ABCDEF00000B /* Build configuration list for PBXProject "iOS-hello_world" */; + compatibilityVersion = "Xcode 15.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = AB1234567890ABCDEF000002; + minimizedProjectReferenceProxies = 1; + preferredProjectObjectVersion = 77; + productRefGroup = AB1234567890ABCDEF000003 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + AB1234567890ABCDEF000005 /* iOS-hello_world */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXFileReference section */ + AB1234567890ABCDEF000004 /* iOS-hello_world.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "iOS-hello_world.app"; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXSourcesBuildPhase section */ + AB1234567890ABCDEF000007 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXFrameworksBuildPhase section */ + AB1234567890ABCDEF000008 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXResourcesBuildPhase section */ + AB1234567890ABCDEF000009 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + AB1234567890ABCDEF00000C /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + IPHONEOS_DEPLOYMENT_TARGET = 17.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + AB1234567890ABCDEF00000D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + AB1234567890ABCDEF00000E /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = ""; + GENERATE_INFOPLIST_FILE = NO; + INFOPLIST_FILE = HelloWorld/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.helloworld; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + AB1234567890ABCDEF00000F /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = ""; + GENERATE_INFOPLIST_FILE = NO; + INFOPLIST_FILE = HelloWorld/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.helloworld; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + AB1234567890ABCDEF00000B /* Build configuration list for PBXProject "iOS-hello_world" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + AB1234567890ABCDEF00000C /* Debug */, + AB1234567890ABCDEF00000D /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + AB1234567890ABCDEF000006 /* Build configuration list for PBXNativeTarget "iOS-hello_world" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + AB1234567890ABCDEF00000E /* Debug */, + AB1234567890ABCDEF00000F /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = AB1234567890ABCDEF00000A /* Project object */; +} diff --git a/iOS-hello_world.xcodeproj/xcshareddata/xcschemes/iOS-hello_world.xcscheme b/iOS-hello_world.xcodeproj/xcshareddata/xcschemes/iOS-hello_world.xcscheme new file mode 100644 index 0000000..cd75820 --- /dev/null +++ b/iOS-hello_world.xcodeproj/xcshareddata/xcschemes/iOS-hello_world.xcscheme @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +