newrelic / newrelic-maui-plugin

New Relic Mobile instrumentation for MAUI
Apache License 2.0
8 stars 4 forks source link

.Net MAUI on iOS fails to compile with New Relic plugin #50

Open robin-schroeder-merc opened 2 hours ago

robin-schroeder-merc commented 2 hours ago

Description

When building in VSCode for iOS, we get the following message:

PackageInspectionFailed: Failed to load Info.plist from bundle at path /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.sENDap/extracted/xxxxx.app/Frameworks/NewRelic.framework; Extra info about "/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.sENDap/extracted/xxxxx.app/Frameworks/NewRelic.framework/Info.plist": dev=16777219 ino=11385879 mode=0100644 nlink=1 uid=33 gid=33 rdev=0 size=787 atime=1728418403.000000 mtime=1728418402.000000 ctime=1644146.054893 birthtime=1644145.392530 blksize=4096 blocks=8 flags=0x0 firstBytes={length = 4, bytes = 0x62706c69} ACL= extendedAttributes=

error MT1006: Could not install the application '/Users/xxxx/Documents/Code/xxxx-Mobile/xxxx/xxxx/bin/Debug/net8.0-ios/ios-arm64/xxxx.app' on the device 'f4931ff21xxxxxxxxxxx0a82ace51': Package Inspection Failed Error (error: 0xe8000051).

Describe the problem you're encountering.

Failed compilation

Steps to Reproduce

Add New Relic and solution fails to compile in VSCode on a Mac. Works fine on a PC with Android.

Expected Behavior

Successful compilation

Relevant Logs / Console output

see above

Your Environment

MacBook Pro VSCode 1.94.1 .Net MAUI extension v1.3.29 C# extension v2.50.25 XCode 15.4

Additional context

ndesai-newrelic commented 2 hours ago

@robin-schroeder-merc which version of newrelic maui package are you using?

robin-schroeder-merc commented 43 minutes ago

With 1.1.2 it gives the error above. With 1.1.3 the app installs, but crashes immediately after it opens. I will be actively working on this today as it is blocking the team. I will update this post if I find anything new.

robin-schroeder-merc commented 2 minutes ago

Running with Rider (instead of VSCode) on MacBook Pro, XCode 15.4, solution has New Relic v1.1.3. The app installs and the crashes on open. Here is the error: Error running 'xxx' Failed to install application on device iPhone: error MT1006: Could not install the application '/ Users/ xxx/ Documents/ Code/xxx/xxx/xxx/ bin/ Debug/ net8.0-ios/ ios-arm64/xxxx. app' on the device 'iPhone': One or more errors occurred. (Failed to execute 'devicectl': 'devicectl -j / var/ folders/ 43/ d0xnxts965v2l2cxg3wb3fnh0000gn/ T/ tmpIfwLky. tmp device install app --device iPhone / Users/ xxx/ Documents/ Code/ xxx/ xxx/ xxx/ bin/ Debug/ net8.0-ios/ ios-arm64/ xxx. app' returned the exit code 1.) (Additional output: xcrun devicectl -j / var/ folders/ 43/ d0xnxts965v2l2cxg3wb3fnh0000gn/ T/ tmpIfwLky. tmp device install app --device iPhone / Users/ xxx/ Documents/ Code/ xxx/ xxx/ xxx/ bin/ Debug/ net8.0-ios/ ios-arm64/ xxx. app) (Additional output: 09:59:10 Acquired tunnel connection to device.) (Additional output: 09:59:10 Enabling developer disk image services.) (Additional output: 09:59:10 Acquired usage assertion.) (Additional output: ERROR: Failed to install the app on the device. (com. apple. dt. CoreDeviceError error 3002 (0xBBA))) (Additional output: NSURL = file:/// Users/ xxx/ Documents/ Code/ xxx/ xxx/ xxx/ bin/ Debug/ net8.0-ios/ ios-arm64/ xxx. app/) (Additional output: ----------------------------------------) (Additional output: Unable to Install “xxx” (IXUserPresentableErrorDomain error 1 (0x01))) (Additional output: NSLocalizedRecoverySuggestion = Failed to load Info. plist from bundle at path / var/ installd/ Library/ Caches/ com. apple. mobile. installd. staging/ temp. Pe4Tkg/ extracted/ xxx. app/ Frameworks/ NewRelic. framework; Extra info about "/ var/ installd/ Library/ Caches/ com. apple. mobile. installd. staging/ temp. Pe4Tkg/ extracted/ xxx. app/ Frameworks/ NewRelic. framework/ Info. plist": dev=16777220 ino=2322569 mode=0100644 nlink=1 uid=33 gid=33 rdev=0 size=787 atime=1728485947.000000 mtime=1728485947.000000 ctime=1728485954.414160 birthtime=1728485947.000000 blksize=4096 blocks=8 flags=0x0 firstBytes={length = 4, bytes = 0x62706c69} ACL= extendedAttributes= ) (Additional output: NSLocalizedFailureReason = Please try again later.) (Additional output: ----------------------------------------) (Additional output: Failed to load Info. plist from bundle at path / var/ installd/ Library/ Caches/ com. apple. mobile. installd. staging/ temp. Pe4Tkg/ extracted/ xxx. app/ Frameworks/ NewRelic. framework; Extra info about "/ var/ installd/ Library/ Caches/ com. apple. mobile. installd. staging/ temp. Pe4Tkg/ extracted/ xxxx. app/ Frameworks/ NewRelic. framework/ Info. plist": dev=16777220 ino=2322569 mode=0100644 nlink=1 uid=33 gid=33 rdev=0 size=787 atime=1728485947.000000 mtime=1728485947.000000 ctime=1728485954.414160 birthtime=1728485947.000000 blksize=4096 blocks=8 flags=0x0 firstBytes={length = 4, bytes = 0x62706c69} ACL= extendedAttributes= (MIInstallerErrorDomain error 35 (0x23))) (Additional output: SourceFileLine = 64) (Additional output: FunctionName = -[MIBundle _validateWithError:]) (Additional output: LegacyErrorString = PackageInspectionFailed) (Additional output: 1%... 2%... 3%... 4%... 5%... 6%... 7%... 8%... 9%... 10%... 11%... 12%... 13%... 14%... 15%... 16%... 18%... 19%... 20%... 21%... 22%... 23%... 24%... 25%... 26%... 27%... 28%... 30%... 31%... 32%... 33%... 34%... 35%... 36%... 37%... 38%... 39%... 40%... 41%... 42%... 43%... 44%... 45%... 46%... 47%... 48%... 49%... 50%... 51%... 52%... 53%... 54%... 55%... 56%... 57%... 59%... 60%... 62%... 66%... 68%... ).