I installed with CocoaPods.
Then i got warning [R.swift] File could not be parsed as Info Plist from URL: /path/to/project/module_name/ $(SRCROOT)/project_name/my_path/Info.plist on xcode 11.2.1.
However i can use R.swift methods.

I have the same issue.
Also I've specified "Info.plist File" field (under "Build Settings" -> "Packaging") relatively just as a variable $(PATH_TO_INFO_PLIST) that goes from .xcconfig.
Maybe it's possible to make an ability to turn Info.plist scanning phase off as a workaround.
We're currently not using the environment variables Xcode exposes to load the info plist file, we should use these instead of looking in the Xcode config ourselves so that all variables are correctly resolved.
Example of environment vars relating to info plist:
export INFOPLIST_EXPAND_BUILD_SETTINGS=YES
export INFOPLIST_FILE=ResourceApp/Info.plist
export INFOPLIST_OUTPUT_FORMAT=binary
export INFOPLIST_PATH=ResourceApp2.app/Info.plist
export INFOPLIST_PREPROCESS=NO
export INFOSTRINGS_PATH=ResourceApp2.app/English.lproj/InfoPlist.strings
As a workaround, while this issue persists:
It鈥檚 possible to manually configure which generators are run: https://github.com/mac-cain13/R.swift/blob/master/Documentation/Ignoring.md#only-run-specific-generators-exclude-rsomething
By not running the info generator, no warning should be shown.
Unfortunately the workaround does not work for me. With a clean build and only the image, string, font and color generators specified the issue still persists.
Indeed, with only --generators color specified it still outputs the following line twice on execution:
warning: [R.swift] File could not be parsed as InfoPlist from URL: file:///.../Info.plist
Facing the same issue in Xcode 11.3
Facing the same issue in Xcode 11.3
Second that.
Facing the same issue in Xcode 11.3
Second that.
Third that.
Facing the same issue in Xcode 11.3
Second that.
Third that.
Fourth that
Facing the same issue in Xcode 11.3
Second that.
Third that.
Fourth that
Fifth that
I submitted a PR to at least remove this warning if you are not running the plist generators. The PR was merged into this project but there hasn't been a release yet. I'll ask the maintainers if they can do that.
Facing the same issue in Xcode 11.3
Second that.
Third that.
Fourth that
Fifth that
sixth that
This has been fixed in R.swift 5.2.0 release.
Finally 馃槃
still has the issue on 5.2.0 release, i was able to workaround by adding --generator types in buildphases
cd YourSPM
SDKROOT=macosx
swift run -c release rswift generate --generators image,string,color,file,font,nib,segue,storyboard,reuseIdentifier,entitlements,id "$SRCROOT/R.generated.swift
input files: $TEMP_DIR/rswift-lastrun
output files: $SRCROOT/R.generated.swift
p.s: iam using manual installation method
Most helpful comment
Facing the same issue in Xcode 11.3