Skip to content

Commit 572d7f8

Browse files
committed
fix: add back main.m
1 parent 570649f commit 572d7f8

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

examples/SampleApp/ios/AppDelegate.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import React
33
import React_RCTAppDelegate
44
import ReactAppDependencyProvider
55

6-
@main
76
class AppDelegate: UIResponder, UIApplicationDelegate {
87
var window: UIWindow?
98

examples/SampleApp/ios/SampleApp.xcodeproj/project.pbxproj

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
F5D25F8E32BEE5B47244E873 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 5CA034D157E1D7F2B7696EF5 /* PrivacyInfo.xcprivacy */; };
1616
FCA5E58D254B70E600B4E978 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = FCA5E58C254B70E600B4E978 /* GoogleService-Info.plist */; };
1717
FDE391DD2D68D510005AA9DC /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = FDE391DC2D68D510005AA9DC /* AppDelegate.swift */; };
18+
FDF6F07B2E08B475005EDE6E /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = FDF6F07A2E08B475005EDE6E /* main.m */; };
1819
/* End PBXBuildFile section */
1920

2021
/* Begin PBXContainerItemProxy section */
@@ -48,6 +49,7 @@
4849
FCA5E58C254B70E600B4E978 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
4950
FDE391DC2D68D510005AA9DC /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
5051
FDE391DE2D68D512005AA9DC /* SampleApp-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SampleApp-Bridging-Header.h"; sourceTree = "<group>"; };
52+
FDF6F07A2E08B475005EDE6E /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
5153
/* End PBXFileReference section */
5254

5355
/* Begin PBXFrameworksBuildPhase section */
@@ -90,6 +92,7 @@
9092
13B07FAE1A68108700A75B9A /* SampleApp */ = {
9193
isa = PBXGroup;
9294
children = (
95+
FDF6F07A2E08B475005EDE6E /* main.m */,
9396
FDE391DC2D68D510005AA9DC /* AppDelegate.swift */,
9497
DD531E2E2807481A00AFB737 /* SampleAppRelease.entitlements */,
9598
DD531E2D280743F700AFB737 /* SampleAppDebug.entitlements */,
@@ -402,6 +405,7 @@
402405
isa = PBXSourcesBuildPhase;
403406
buildActionMask = 2147483647;
404407
files = (
408+
FDF6F07B2E08B475005EDE6E /* main.m in Sources */,
405409
FDE391DD2D68D510005AA9DC /* AppDelegate.swift in Sources */,
406410
);
407411
runOnlyForDeploymentPostprocessing = 0;
@@ -674,10 +678,7 @@
674678
"-DFOLLY_USE_LIBCPP=1",
675679
"-DFOLLY_CFG_NO_COROUTINES=1",
676680
);
677-
OTHER_LDFLAGS = (
678-
"$(inherited)",
679-
" ",
680-
);
681+
OTHER_LDFLAGS = "$(inherited) ";
681682
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
682683
SDKROOT = iphoneos;
683684
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG";
@@ -809,10 +810,7 @@
809810
"-DFOLLY_USE_LIBCPP=1",
810811
"-DFOLLY_CFG_NO_COROUTINES=1",
811812
);
812-
OTHER_LDFLAGS = (
813-
"$(inherited)",
814-
" ",
815-
);
813+
OTHER_LDFLAGS = "$(inherited) ";
816814
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
817815
SDKROOT = iphoneos;
818816
USE_HERMES = true;

examples/SampleApp/ios/main.m

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#import <UIKit/UIKit.h>
2+
#import "SampleApp-Swift.h"
3+
4+
int main(int argc, char * argv[]) {
5+
@autoreleasepool {
6+
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
7+
}
8+
}

0 commit comments

Comments
 (0)