Browse Source

Fixed ios build crash

Arnaud Vergnet 1 year ago
parent
commit
f8ded811f4
3 changed files with 49 additions and 12 deletions
  1. 49
    0
      ios/Campus.xcodeproj/project.pbxproj
  2. 0
    9
      ios/Campus/AppDelegate.m
  3. 0
    3
      ios/Podfile

+ 49
- 0
ios/Campus.xcodeproj/project.pbxproj View File

@@ -125,6 +125,7 @@
125 125
 				13B07F8C1A680F5B00A75B9A /* Frameworks */,
126 126
 				13B07F8E1A680F5B00A75B9A /* Resources */,
127 127
 				00DD1BFF1BD5951E006B06BC /* Bundle Expo Assets */,
128
+				58CDB7AB66969EE82AA3E3B0 /* [CP] Copy Pods Resources */,
128 129
 			);
129 130
 			buildRules = (
130 131
 			);
@@ -198,6 +199,54 @@
198 199
 			shellPath = /bin/sh;
199 200
 			shellScript = "../node_modules/react-native/scripts/react-native-xcode.sh\n";
200 201
 		};
202
+		58CDB7AB66969EE82AA3E3B0 /* [CP] Copy Pods Resources */ = {
203
+			isa = PBXShellScriptBuildPhase;
204
+			buildActionMask = 2147483647;
205
+			files = (
206
+			);
207
+			inputPaths = (
208
+				"${PODS_ROOT}/Target Support Files/Pods-Campus/Pods-Campus-resources.sh",
209
+				"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/AntDesign.ttf",
210
+				"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Entypo.ttf",
211
+				"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf",
212
+				"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Feather.ttf",
213
+				"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome.ttf",
214
+				"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Brands.ttf",
215
+				"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Regular.ttf",
216
+				"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Solid.ttf",
217
+				"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Fontisto.ttf",
218
+				"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Foundation.ttf",
219
+				"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Ionicons.ttf",
220
+				"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf",
221
+				"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf",
222
+				"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Octicons.ttf",
223
+				"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf",
224
+				"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Zocial.ttf",
225
+			);
226
+			name = "[CP] Copy Pods Resources";
227
+			outputPaths = (
228
+				"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AntDesign.ttf",
229
+				"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Entypo.ttf",
230
+				"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/EvilIcons.ttf",
231
+				"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Feather.ttf",
232
+				"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FontAwesome.ttf",
233
+				"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FontAwesome5_Brands.ttf",
234
+				"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FontAwesome5_Regular.ttf",
235
+				"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FontAwesome5_Solid.ttf",
236
+				"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Fontisto.ttf",
237
+				"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Foundation.ttf",
238
+				"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Ionicons.ttf",
239
+				"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MaterialCommunityIcons.ttf",
240
+				"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MaterialIcons.ttf",
241
+				"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Octicons.ttf",
242
+				"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/SimpleLineIcons.ttf",
243
+				"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Zocial.ttf",
244
+			);
245
+			runOnlyForDeploymentPostprocessing = 0;
246
+			shellPath = /bin/sh;
247
+			shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Campus/Pods-Campus-resources.sh\"\n";
248
+			showEnvVarsInLog = 0;
249
+		};
201 250
 		F8BC737F2AD7A05944D9E2A1 /* [CP] Check Pods Manifest.lock */ = {
202 251
 			isa = PBXShellScriptBuildPhase;
203 252
 			buildActionMask = 2147483647;

+ 0
- 9
ios/Campus/AppDelegate.m View File

@@ -37,19 +37,10 @@
37 37
   self.window.rootViewController = rootViewController;
38 38
   [self.window makeKeyAndVisible];
39 39
 
40
-  [super application:application didFinishLaunchingWithOptions:launchOptions];
41 40
   [RNSplashScreen show];
42 41
   return YES;
43 42
 }
44 43
 
45
-- (NSArray<id<RCTBridgeModule>> *)extraModulesForBridge:(RCTBridge *)bridge
46
-{
47
-  NSArray<id<RCTBridgeModule>> *extraModules = [_moduleRegistryAdapter extraModulesForBridge:bridge];
48
-  // You can inject any extra modules that you would like here, more information at:
49
-  // https://facebook.github.io/react-native/docs/native-modules-ios.html#dependency-injection
50
-  return extraModules;
51
-}
52
-
53 44
 - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge {
54 45
 #ifdef DEBUG
55 46
   return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];

+ 0
- 3
ios/Podfile View File

@@ -46,7 +46,4 @@ target 'Campus' do
46 46
   pod 'Permission-Notifications', :path => "#{permissions_path}/Notifications.podspec"
47 47
   pod 'Permission-Camera', :path => "#{permissions_path}/Camera.podspec"
48 48
 
49
-  # Vector Icons
50
-  pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
51
-
52 49
 end

Loading…
Cancel
Save