remove m1 pod workaround
@@ -27,20 +27,6 @@ target 'InstabugSample' do
post_install do |installer|
react_native_post_install(installer)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
- ## Fix for XCode 12.5 beta
- find_and_replace("../node_modules/react-native/React/CxxBridge/RCTCxxBridge.mm",
- "_initializeModules:(NSArray<id<RCTBridgeModule>> *)modules", "_initializeModules:(NSArray<Class> *)modules")
end
end
-def find_and_replace(dir, findstr, replacestr)
- Dir[dir].each do |name|
- text = File.read(name)
- replace = text.gsub(findstr,replacestr)
- if text != replace
- puts "Fix: " + name
- File.open(name, "w") { |file| file.puts replace }
- STDOUT.flush
- end
- end
- Dir[dir + '*/'].each(&method(:find_and_replace))
-end
+
