MRC Project to ARC

  1. Open project.pbxproj file in YourProjectName.xcodeproj with TextMate or other tool.
  2. Replace  -fobjc-arc flag


    Find : (.*\.m.*PBXBuildFile.*)(setting.*"-fobjc-arc"; \};)(.*)
     
    Replace : $1UngacyHateMRC$3
  3. Set  -fno-objc-arc flag

    Find : (.*\.m.*PBXBuildFile(.(?! UngacyHateMRC))*)(.\};)
    
    Replace : $1 settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; $3


  4. Clear Special flag


    Find : UngacyHateMRC
    
    Replace : //Empty String