Xamarin Forms - Lack of Restricted Segment in iOS binary

Helder Barreiros 1 Reputation point
2021-12-22T12:24:40.827+00:00

A security issue has been marked by cwe : https://cwe.mitre.org/data/definitions/693.html

The solution in xcode is: "Mark a binary as restricted is by telling the linker to add new section to the binary header that is named "_RESTRICT" and has a section named "_restrict" when you compile it. This can be done in Xcode by adding the following flags into your "Other Linker Flags" : "-Wl,-sectcreate,_RESTRICT,_restrict,/dev/null" "

How Can This be achieved in Xamarin Forms?

Developer technologies | .NET | Xamarin
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,436 Reputation points Microsoft External Staff
    2021-12-23T08:06:44.52+00:00

    Hello,

    Welcome to our Microsoft Q&A platform!

    You could right click your iOS project , select Properties, go to iOS Build, add the flags to Additional mtouch arhuments which means Other Linker Flags setting in Xcode.

    Best Regards,
    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.