| 
					
				 | 
			
			
				@@ -58,7 +58,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     NSString *resourceBundlePath = @"gRPCCertificates.bundle";  // .pem 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // Do not use NSBundle.mainBundle, as it's nil for tests of library projects. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     NSBundle *bundle = [NSBundle bundleForClass:[self class]]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    NSBundle *resourceBundle = [NSBundle bundleWithURL:[[bundle resourceURL] URLByAppendingPathComponent:resourceBundlePath]]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    NSBundle *resourceBundle = [NSBundle 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        bundleWithURL:[[bundle resourceURL] URLByAppendingPathComponent:resourceBundlePath]]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     NSString *path = [resourceBundle pathForResource:rootsPEM ofType:@"pem"]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     setenv(GRPC_DEFAULT_SSL_ROOTS_FILE_PATH_ENV_VAR, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            [path cStringUsingEncoding:NSUTF8StringEncoding], 1); 
			 |