Don't try to access files outside of your App's sandbox. Don't load shared libraries. Don't link to Apple's private frameworks.
Don't use a jailbreak - or if you do, sell your App in one of the stores for jailbreak Apps, but not Apple's App Store. Jailbreak Apps are perfectly legal, provided you didn't sign the iPhone Developer Agreement that you have to sign to get an iOS developer program membership.
You can use a cross-platform application framework, but you cannot run a code interpreter, and you cannot download code from the Internet. Why Apple considers that a problem is completely beyond my comprehension, because any App can use the iOS-provided UIWebView, which includes a Javascript interpreter, so in principle your native App could be a front-end for a purely interpreted App written entirely in Javascript.
Apple is down with Javascript, just don't try using Java, Flash, Perl or Python.
Don't reverse engineer the iOS or your devices.
If you don't sign the iOS developer program agreement, you can do just about anything you damn well please, but if you violate any of the above, Apple won't accept your App in the App Store. But if you do sign the agreement, violating any of these terms might result in a B-52 bomber dropping Thousand Pound Lawyer Bombs on your office.